I have this code and I have this error Code blocks are not supported in this context
<%
for (int i = 0; i < 5; i++)
{
%>
<asp:DropDownList runat="server" ID="<%=i %>">
<asp:ListItem><%i.ToString(); %></asp:ListItem>
</asp:DropDownList>
<%
}
%>
That's not allowed in web forms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With