solution1368
asked on
asp.net, c#
<%
for i = 0 to 19
response.write "<input name=txtqty" & i & "><br>"
next
%>
How to convert to asp.net/c#? I would like to use .net asp control in textbox as well.
Thanks
for i = 0 to 19
response.write "<input name=txtqty" & i & "><br>"
next
%>
How to convert to asp.net/c#? I would like to use .net asp control in textbox as well.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want functionality similar to ASP then you should rather go to MVC and not to ASP.Net Web Controls.
MVC3 Razor Syntax. as below
MVC3 Razor Syntax. as below
@for (int i = 0; i < 10; i++)
{
@Html.TextBox("Textbox" + i) <br />
}
ASKER