How can I do the equivalent of
Classic ASP:
<%
for int_linkCTR = 1 to 5
%>
<a href="somelink.com" ID="Hyperlink<%= int_linkCTR %>" >Link<%= int_linkCTR %></a>
<%
next
%>
C#
<% for (int int_linkCTR = 1; int_linkCTR <= 3; int_linkCTR++) { %>
<asp:HyperLink ID="link<%# int_linkCTR %>" runat="server">
HyperLink<%# int_linkCTR %>"
</asp:HyperLink>
<% } %>
I want to loop through and create new hyperlinks based on my link count