.net - ASP.NET VB.NET GridView adding anchor tag to a cell -
i have gridview control data in first cell throughout column. ineed make cell data hyperlink (anchor tag) following.
<a href=""mypage.aspx?r=" & strparam & """>" & strdata & "</a>"
can advise on effective way this? using datatable , assigning datatable gridview. advice appreciated.
i need use sub gridview1_rowdatabound(byval sender object, byval e gridviewroweventargs). add hyperlink whatabout getting parameters rowdatabound event skills falling down.
thank you
i assume when binding data gridview, strparam , strdata in datasource below
<a href ="mypage.aspx?r=<%# eval("strparam")%>"> <asp:label id="lblview" runat="server" text='<%# eval("strdata ")%>'></asp:label></a>
Comments
Post a Comment