Link to home
Start Free TrialLog in
Avatar of solution1368
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
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of solution1368
solution1368

ASKER

great. this is exactly what I need. Thanks
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

   @for (int i = 0; i < 10; i++)
		{
			 @Html.TextBox("Textbox" + i) <br />
		}

Open in new window