I have a datalist that provides membership info. The datalist has several records. What I would like to do is create a linkbutton for each username in the datalist. When the linkbutton is clicked, I would like to fire a subroutine. My code looks like this:
Ideally, what I would like to do is add an onclick event that passes a commandArgument to the subRoutine. Can anyone give me some tips on how to accomplish this?
thanx,
drew
Code:
<ItemTemplate>
<table>
<tr>
<td><asp:linkbutton runat=server><%# DataBinder.eval(Container.DataItem, "userName")%></asp:linkbutton></td>
</tr>
</table>
</ItemTemplate>
thanx,
drew