accessing hyperlink text on next page
-
i have a datagrid hyperlinkcolumn which takes application to next page on that next page i want to retrieve that value which was visible in the datagrid as hyperlink .how to do this?
Hi there, In this case, you simply attach the value in the query string of the url, then in the destination page you can easily retrieve the value. The HyperLinkColumn looks something like:
<asp:HyperLinkColumn HeaderText="HyperLinkColumn" DataNavigateUrlField="Name"
DataTextField="Name" DataNavigateUrlFormatString="WebForm.aspx?key={0}">
</asp:HyperLinkColumn> -
Hi there, In this case, you simply attach the value in the query string of the url, then in the destination page you can easily retrieve the value. The HyperLinkColumn looks something like:
<asp:HyperLinkColumn HeaderText="HyperLinkColumn" DataNavigateUrlField="Name"
DataTextField="Name" DataNavigateUrlFormatString="WebForm.aspx?key={0}">
</asp:HyperLinkColumn>