Jump to content


Photo

Ch.4 Pg 151, Checkbox Example, 4-21


  • Please log in to reply
1 reply to this topic

#1 BusterBluth

BusterBluth

    New Member

  • Members
  • Pip
  • 2 posts

Posted 26 August 2009 - 04:56 AM

The book says that each time a checkbox's value is changed, the page will post back and the text will refresh w/ the new time.

This didn't happen when I ran the example. The time refreshes after the initial postback, but not upon subsequent changes. Would putting this code in the Page_Load event be more appropriate?

Since the server is creating Javascript to handle the clicks, it makes sense to me why the client would handle the changes without posting back to the server. Is that in fact what is happening?

#2 BusterBluth

BusterBluth

    New Member

  • Members
  • Pip
  • 2 posts

Posted 26 August 2009 - 05:42 AM

Quick correction: The date/time label refreshes after the 1st 2 clicks of any control, but not after the 3rd change of any control.

I noticed the same behavior w/ example 4-21 as well.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users