ASP.NET VB.NET GridView adding anchor tag to a cell

Posted by user3036965 on Stack Overflow See other posts from Stack Overflow or by user3036965
Published on 2014-06-02T14:47:28Z Indexed on 2014/06/02 15:26 UTC
Read the original article Hit count: 457

Filed under:
|
|

I have an GridView control with some data in the first cell throughout the column. Ineed to make that cell data into a hyperlink (anchor tag) like the following.

<a href=""myPage.aspx?r=" & strParam & """>" & strData & "</a>"

Can anyone advise on the most effective way to do this? I am using a datatable and then assigning the datatable to the gridview. Any advice would be greatly appreciated.

I need to use the Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs). So I could add a hyperlink whatabout getting the parameters into the RowDataBound event is where my skills are falling down.

Thank you

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about .NET