Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

set a message in drupal -


i need 1 of 2 things in drupal

  1. have ability set info message specific user view next time login. message show in standard $messages variable. looked see if drupal_set_message() had capabilities didn't find it
  2. run function everytime page loaded info cause drupal_set_message sent

i prefer second option, if has suggestions.

i place code in hook_init(). of drupal has been loaded , available on every page load.

within that, query list of messages form database , funnel them drupal_set_message(). $messages variable stored in session, need call drupal_set_message() @ time want show message.

storing need present message different challenge, , depends on how determine message needs set. if based on elapsed time, can skip custom coding , go straight rules--defining triggers , actions based on user login date.

if more dynamic messaging scheme, need notify users of events have happened in absence, might use write code based around message module or it, allow record messages database, , query dated since user's last login. in fact, idea, bears further thought...

a more specific question in recommending more targeted solutions.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -