How to pass record id into hyperlink in radgrid?
Posted
by
mongoose_za
on Stack Overflow
See other posts from Stack Overflow
or by mongoose_za
Published on 2011-02-22T08:14:27Z
Indexed on
2012/04/11
17:29 UTC
Read the original article
Hit count: 211
I've a radgrid and rendering a hyperlink column. I want to pass the id of the record into the url for the hyperlink. How can I do this?
I have this
<Columns>
<telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Edit" UniqueName="Edit">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" NavigateUrl="~/Edit.aspx?Id=need_to_bind_id_here">Edit Details</asp:HyperLink>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
There is an ID column which is generated too.
© Stack Overflow or respective owner