Within my gridview, I have a linkbutton...
<asp:LinkButton ID="lbDate" runat="server" Text="<%# Eval( "Name")%>" CommandName="View" CommandArgument="<%# Container.DataItemIndex %>" />
The Command Argument holds my DataKeyValue which in this case is the 'Event ID'. I know that when the text field is left blank, the command arguement is displayed as the text. However, I don't want the linkbutton to display the Event ID. Instead, there is a date associated with each Event ID. I would like that date to appear as the text of the link button.
How can this be accomplished? The Eval command in the above Text field gives an error..
Thanks..
<asp:LinkButton ID="lbDate" runat="server" Text="<%# Eval( "Name")%>" CommandName="View" CommandArgument="<%# Container.DataItemIndex %>" />
The Command Argument holds my DataKeyValue which in this case is the 'Event ID'. I know that when the text field is left blank, the command arguement is displayed as the text. However, I don't want the linkbutton to display the Event ID. Instead, there is a date associated with each Event ID. I would like that date to appear as the text of the link button.
How can this be accomplished? The Eval command in the above Text field gives an error..
Thanks..