Possible Duplicate:
Using ASP.NET Controls without databinding
My previous question yielded few results so I thought I would reword the question and try again.
foreach (XXX x in TTTT){ %>
<tr>
<td><%=x.val %></td>
<asp:ImageButton runat="server" CommandName="uiImgResolve_Click"
CommandArgument='<%=X.pkid%>' ImageUrl="../images/IMG.png"/>
<% } %>
This will not work as I cannot set a value in any control that has the RUNTAT attribute set. What is the best way to give each row a value so when the on click event happens I can read in the value of the item clicked, I cannot put the value on the query string and I cannot use asp.net databinding.
what I am doing is much more complex then this, databinding will not work.
PERHAPS a better way of asking the question is is there anyway to use the looping mechanism above and still maintain a link to a method on the codebehind of a control?