J
Jan Vetterli
hi,
I'm wondering how I can achieve a button with a CommandArgument thats
dynamicly created from two or more DataBinder values, seperated with a ";"
so I can split the information up afterwards.
I've tried this (on the HTML page):
<asp:Button ID="NewButton" Runat="server" Text="New"
CommandName = "New"
CommandArgument ='<%# DataBinder.Eval(Container.Item, "ID")%> & ";" &
<%# DataBinder.Eval(Container.Item, "Name")%>'
</asp:Button>
With this code, I'll alway get an error msg. Can anybody help, please?
Thanks
Jan
I'm wondering how I can achieve a button with a CommandArgument thats
dynamicly created from two or more DataBinder values, seperated with a ";"
so I can split the information up afterwards.
I've tried this (on the HTML page):
<asp:Button ID="NewButton" Runat="server" Text="New"
CommandName = "New"
CommandArgument ='<%# DataBinder.Eval(Container.Item, "ID")%> & ";" &
<%# DataBinder.Eval(Container.Item, "Name")%>'
</asp:Button>
With this code, I'll alway get an error msg. Can anybody help, please?
Thanks
Jan