This feels like it is too obvoius to ask, but I have been stymied in trying to find an answer by reading the docs...
I want to create a series of buttons in a loop, with each button passing a parameter to the handler to distinguish it from the others.
When I attempt to do this, the ASPX compiler complains that it is not legal to use <%%> in server tags.
Dave Gee
I want to create a series of buttons in a loop, with each button passing a parameter to the handler to distinguish it from the others.
Code:
<%for i = 0 to ButtonCount%>
<asp:button id=<%=i%> onclick="handler" runat=server ...
<%next%>
When I attempt to do this, the ASPX compiler complains that it is not legal to use <%%> in server tags.
Dave Gee