I have a gridView control. I want to show the page URL in the GridView as a Link in C#.
For example
My URL:
http://www.c-sharpcorner.com/Forums/AddPost.aspx?TSource=AddPost
Show that url in the GridView as a column with hyperlink.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
CrishPosted Apr 13, 2011, 7:15 AM
Ankit NandekarPosted Apr 13, 2011, 3:29 AM
with in a gridview write
Amit ChoudharyPosted Apr 13, 2011, 3:15 AM
use the template column and use the asp.net hyperlink control to show your link there.
DataNavigateUrlFormatString="LabelDetails.aspx?LabelID={0}"
Text="Details..." />
Hope this helps you.
Thanks.