O'Reilly Forums: Ch.4 Pg 151, Checkbox Example, 4-21 - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   BusterBluth 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 26-August 09

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?
0

#2 User is offline   BusterBluth 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 26-August 09

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users