Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Exercises

20.3 (WebTime Modification) Modify the WebTime example to contain drop-down lists that allow the user to modify such Label properties as BackColor, ForeColor and Font-Size. Configure these drop-down lists so that a postback occurs whenever the user makes a selection—to do this, set their AutoPostBack properties to true. When the page reloads, it should reflect the specified changes to the properties of the Label displaying the time.

20.4 (Page Hit Counter) Create an ASP.NET page that uses session tracking to keep track of how many times the client computer has visited the page. Set the HttpSessionState object’s Timeout property to 1440 (the number of minutes in one day) to keep the session in effect for one day into the future. Display the number of page hits every time the page loads.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint