|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Get state of Dynamically generated controls on post backHow can I get state of dynamically generated controls (RadioButton,
CheckBox, TextBox.Text) on post back when I click submit button? The only way I know is by traversing Response.Form enumberator; Response.Form.GetEnumerator(), etc. However, I am not sure if that is the proper way. Thanks, -Amelyan Reload the dynamic controls in the page_load, thier viewstate will be
installed into them and you can access it from the event that caused the postback In my custom User Control, I am creating an event handler for the dynamic
control's ServerChange event so that when it changes, I can do something. The sender object will be the object you need to access its state or value. Fred Show quoteHide quote "Amelyan" <bamel***@wi.rr.com> wrote in message news:%235IseHyVFHA.3572@TK2MSFTNGP12.phx.gbl... > How can I get state of dynamically generated controls (RadioButton, > CheckBox, TextBox.Text) on post back when I click submit button? > > The only way I know is by traversing Response.Form enumberator; > Response.Form.GetEnumerator(), etc. > > However, I am not sure if that is the proper way. > > Thanks, > -Amelyan >
Why don't child control events trigger OnBubbleEvent?
About CreateChildControls() HELP!! Dynamically created webcontrol not accessible on postback Looking for an Autocomplete DropDownList looking for tab control / tabstrip in VS 2005 beta2 Multiple Label tags with same ID Datagrid ... is this the control from hell? What is .Net equivilent of Fieldset/Legend Datalist layout DropDownlist and sorting |
|||||||||||||||||||||||