|
-
Feb 1st, 2005, 05:49 PM
#1
Thread Starter
Member
HtmlInputHidden[Resolved]
I have created a user control. For each text box in the user control, I have created onTextChange event which is true if the user fills out any text box. I have a HtmlInputHidden field which usually is set to False but once the user start entering data, it is set to True. If the user clicks return to return back, I have added code to ask the user if they want to store the data. The pop up is done using the javascript code. If the user decides to continue, I change the value of the HtmlInputHidden field to false, and call the button's onclick event. The problem here is that even though I use the following code to change the value, it still shows true in the button's onclick event. If I click the button again, then it knows the value has been changed and it returns back to the previous page.
Code:
document.getelementbyid('UserControl_HTMLHiddenfield).value = "False";
Can someone tell me what could be the reason? Thanks in advance
Last edited by Sansari71; Feb 1st, 2005 at 06:16 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|