YvonneTsang
Programmer
I an new to Asp.net and I need some help. In ASP I was able to create Dynamic controls on my page by having the ASP use Response.Write and the controls that I wanted. An example would be
<Body>
<%
for i = 0 to count
If Text
Response.Write " <input id=a type=textbox" & i & " name=a" & i & " ></input>"
else
Response.Write " <input id=a type=checkbox" & i & " name=a" & i & " ></input>"
loop
%>
</Body>
How can I get this sort of functionality out of .net? The number of times it loops through can change, so I can't just make the maximum number of inputs and set visible to false. There must be an easy for me to do this still and keep everything in .net. I know I can still use old ASP code but that is not what I really want to do.
Thanks in Advance.
<Body>
<%
for i = 0 to count
If Text
Response.Write " <input id=a type=textbox" & i & " name=a" & i & " ></input>"
else
Response.Write " <input id=a type=checkbox" & i & " name=a" & i & " ></input>"
loop
%>
</Body>
How can I get this sort of functionality out of .net? The number of times it loops through can change, so I can't just make the maximum number of inputs and set visible to false. There must be an easy for me to do this still and keep everything in .net. I know I can still use old ASP code but that is not what I really want to do.
Thanks in Advance.