Ch.4 Pg 151, Checkbox Example, 4-21 |
![]() ![]() |
Ch.4 Pg 151, Checkbox Example, 4-21 |
Aug 26 2009, 04:56 AM
Post
#1
|
|
|
|
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? |
|
|
|
Aug 26 2009, 05:42 AM
Post
#2
|
|
|
|
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. |
|
|
|
Jan 31 2010, 10:49 PM
Post
#3
|
|
|
|
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. Example 4-21 works on the same structure defined in chapter 4. -------------------- I work in an alcohol rehab. Can anyone here help me in managing a site on drug and alcohol rehab ? Then P.M me!
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 9th February 2010 - 06:53 PM |