Do you have a simple examle of generating the controls with an XSLT
stylesheet that produces the output from XML read dynamically from a
database, then reading the template again from the database on post back,
and traversing the results there, and isolating particular controls using
the Page.FindControl method?
Thanks,
-Amelyan
<dave.dolan@gmail.com> wrote in message
news:1115925394.653800.322910@o13g2000cwo.googlegr oups.com...[color=blue]
>
> Lucas Tam wrote:[color=green]
>> "Amelyan" <bamelyan@wi.rr.com> wrote in
>> news:e5WkRJyVFHA.3280@TK2MSFTNGP09.phx.gbl:
>>[color=darkred]
>> > How can I get state of dynamically created 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. while, identifying specific
>> > controls by programmatically assigned unique id (e.g.
>> > MyButton_AnswerID_123).
>> >
>> > However, I am not sure if that is the proper way. What is the[/color][/color]
> common[color=green][color=darkred]
>> > practice?[/color]
>>
>> On postback, recreate the cotrols - then you can access the previous
>> viewstate of the controls.
>>
>> --
>> Lucas Tam (REMOVEnntp@rogers.com)
>> Please delete "REMOVE" from the e-mail address when replying.
>>
http://members.ebay.com/aboutme/coolspot18/[/color]
>
> What I do is traverse the source of the controls...
>
> I generate the controls with an XSLT stylesheet that produces the
> output from XML read dynamically from a database. I read the template
> again from the database on post back, and traverse the results there.
> I isolate particular controls using the Page.FindControl method.
>
> That way, if I'm only looking for some of them, I don't have to read
> through the whole response.
>[/color]