|
-
July 16th, 2007, 02:46 PM
#1
HtmlInputCheckBox Control
I have a web page which populates various controls (HtmlInputTextBox, HtmlInputSelect, HtmlInputCheckBox, etc.) into htmlcells of an htmltable. The user can modify these controls and then click a "Save" link. This Save routine goes and finds all the controls, gets the value/setting of the control, and then saves the results to a database.
I use the command "Page.Request.Form[controlName]", where "controlName" is the name of the control, to retrieve the value. However, sometimes the HtmlCheckBoxControl is returned as "null" as if it isn't found. I noticed this happens after the checkbox is unchecked by the user.
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
|