Dynamic Form Problem!

G

Guest

Can someone please tell me how I progromatically repeat the following html in
a webform according to a selection made from a dropdownlist.

EG: If i choose the value 2 from a dropdownlist it creates 2 of the
following code snippets!

Thanks


<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr vAlign="top" align="left">
<td width="50">
<P> </P>
</td>
<td width="10">
<P> </P>
</td>
<td width="100">
<P>Service Provider:</P>
</td>
<td width="10">
<P> </P>
</td>
<td width="150">
<P><asp:dropdownlist id="fldMobSP" runat="server"
Height="18px"></asp:dropdownlist></P>
</td>
<td width="10">
<P> </P>
</td>
<td width="100">
<P> </P>
</td>
<td width="10">
<P> </P>
</td>
<td>
<P> </P>
</td>
</tr>
<tr vAlign="top" align="left">
<td width="50">
<P> </P>
</td>
<td width="10">
<P> </P>
</td>
<td width="100">
<P>Phone No:</P>
</td>
<td width="10">
<P> </P>
</td>
<td width="150"><asp:textbox id="fldMobPhoneNo" runat="server" Height="18px"
Width="150px"></asp:textbox></td>
<td width="10"> </td>
<td width="100"> </td>
<td width="10"> </td>
<td> </td>
</tr>
<tr vAlign="top" align="left">
<td width="50"> </td>
<td width="10"> </td>
<td width="100">
<P>Account No:</P>
</td>
<td width="10"> </td>
<td width="150"><asp:textbox id="fldAccountNo" runat="server" Height="18px"
Width="150px"></asp:textbox></td>
<td width="10"> </td>
<td width="100"> </td>
<td width="10"> </td>
<td> </td>
</tr>
<tr vAlign="top" align="left">
<td width="50"> </td>
<td width="10"> </td>
<td width="100">
<P>Usage:</P>
</td>
<td width="10"> </td>
<td width="150"><asp:dropdownlist id="fldMobUsage" runat="server"
Height="18px"></asp:dropdownlist></td>
<td width="10"> </td>
<td width="100"> </td>
<td width="10"> </td>
<td> </td>
</tr>
<tr vAlign="top" align="left">
<td width="50"> </td>
<td width="10"> </td>
<td width="100">
<P>Manufacturer:</P>
</td>
<td width="10"> </td>
<td width="150"><asp:dropdownlist id="fldMobManu" runat="server"
Height="18px"></asp:dropdownlist></td>
<td width="10"> </td>
<td width="100">
<P>SIM No:
</P>
</td>
<td width="10"> </td>
<td><asp:textbox id="fldSIMNo" runat="server" Height="18px"
Width="150px"></asp:textbox></td>
</tr>
<tr vAlign="top" align="left">
<td width="50"> </td>
<td width="10"> </td>
<td width="100">
<P>Phone Model:</P>
</td>
<td width="10"> </td>
<td width="150"><asp:textbox id="textfield" runat="server" Height="18px"
Width="150px"></asp:textbox></td>
<td width="10"> </td>
<td width="100">
<P>PUK No:
</P>
</td>
<td width="10"> </td>
<td><asp:textbox id="fldPUKNo" runat="server" Height="18px"
Width="150px"></asp:textbox></td>
</tr>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top