A
Alexander Smirnov
Hello
I have the following code (simplified) inside aspx file:
<% for(i=1;i<=someVariable;++i) { %>
<asp:LinkButton ID="lbSR" runat="server" OnCommand="OnAllCommands"
CommandName="scp" CommandArgument="<%=i %>"> <%=i %> </asp:LinkButton>
<% } %>
The problem is that the value of i is not assigned to CommandArgument
but the string "<%=i %>" itself.
How can I assign value of i to the CommandArgument in the above cycle?
thanks in advance
I have the following code (simplified) inside aspx file:
<% for(i=1;i<=someVariable;++i) { %>
<asp:LinkButton ID="lbSR" runat="server" OnCommand="OnAllCommands"
CommandName="scp" CommandArgument="<%=i %>"> <%=i %> </asp:LinkButton>
<% } %>
The problem is that the value of i is not assigned to CommandArgument
but the string "<%=i %>" itself.
How can I assign value of i to the CommandArgument in the above cycle?
thanks in advance