G
Guest
I have asked this question several times and can't seem to get the answer I
am looking for!
I am trying to create a form that responds dynamically to the users choises
within the page. At the moment I have a dropdownlist that has the values 1-10
in it. What I want to happen is that when the user selects one of the
values... lets say 3! Three parts of the form are repeated! This means that
the three parts of the forms input id's have to be unique!
Simple Code Example:
<asp:dropdownlist id="NoAccounts" runat="server"></asp:dropdownlist>
'Repeat code
<asp:textbox id="fldMobPhoneNo" runat="server"</asp:textbox><br>
<asp:textbox id="fldHomePhoneNo" runat="server"</asp:textbox><br>
<asp:dropdownlist id="ServicePro" runat="server"></asp:dropdownlist>
'End Repeat code
I thought I would put the repeat code in a user control and pull in the user
control as many times as required according to the selection from the
dropdownlist. However I'm not 100% sure how to change all the id's of the
textboxes especially considering the form I'm using is much more advanced
than that show above!
I would really, really appritiate any advice from one of you guru's out
there!
Thanks!
am looking for!
I am trying to create a form that responds dynamically to the users choises
within the page. At the moment I have a dropdownlist that has the values 1-10
in it. What I want to happen is that when the user selects one of the
values... lets say 3! Three parts of the form are repeated! This means that
the three parts of the forms input id's have to be unique!
Simple Code Example:
<asp:dropdownlist id="NoAccounts" runat="server"></asp:dropdownlist>
'Repeat code
<asp:textbox id="fldMobPhoneNo" runat="server"</asp:textbox><br>
<asp:textbox id="fldHomePhoneNo" runat="server"</asp:textbox><br>
<asp:dropdownlist id="ServicePro" runat="server"></asp:dropdownlist>
'End Repeat code
I thought I would put the repeat code in a user control and pull in the user
control as many times as required according to the selection from the
dropdownlist. However I'm not 100% sure how to change all the id's of the
textboxes especially considering the form I'm using is much more advanced
than that show above!
I would really, really appritiate any advice from one of you guru's out
there!
Thanks!