I have a application where i need to keep "tip of the day"
-
In my application i need to keep "tip of the day".i have a table with a list of tips. I need to display one of the tips from database table on to the web page and it has to change every day(increment).But Same tip is coming if i'm using "Application" Please help to solve this problem.
-
In my application i need to keep "tip of the day".i have a table with a list of tips. I need to display one of the tips from database table on to the web page and it has to change every day(increment).But Same tip is coming if i'm using "Application" Please help to solve this problem.
Well it's quite obvious that you also need to store the index of the last row accessed. if it is global to your application, then You can use an application level variable, otherwise use a cookie for each user. int x = (int)Application["tip_num"]; DataRow tip = ((Datatable)Application["tips"]).Rows[x];
only two letters away from being an asset