View Single Post
  #3 (permalink)  
Old December 1st, 2009, 02:33 AM
irProject irProject is offline
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Default

you can use sessions, but you are not forced to.
by sessions you can do like this:
when a sessions starts you can set a propery of session to 'true'
Session_Start(...)
{
Session["isFirstTime"] = true;
}

and in your pages check that if Session["isFirstTime"] is true then set background of page to Green and then set Session["isFirstTime"] to false.
and for next times check that if Session["isFirstTime"] is false, then background of page should be red.