Can anyone help me with this:
In CF i'm used to being able to dynamically generate sections of an HTML form by looping over a section of HTML code like this:
<table>
<tr>
<td>Header</td>
</tr>
<cfloop from="1" to="5" index="i">
<tr>
<td>
<cfoutput>
<input type="text" name="someField#i#">
</cfoutput>
</td>
</tr>
</cfloop>
</table>
Does anyone know how to do this with asp.Net?
So far i've been able to discover that I can add controls to the page dynamically using Controls.Add() and <asp:PlaceHolder>. This doesn't allow me to add controls to a page without first knowing how many I will need and hard-coding placeholders though...
Chris.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- ASP.Net equivalent of CFLOOP in the page...? Chris Spencer
- RE: ASP.Net equivalent of CFLOOP in the page...? Chris Spencer
- RE: ASP.Net equivalent of CFLOOP in the page...? Calvin Ward
- RE: ASP.Net equivalent of CFLOOP in the page...? Ian Skinner