This is a migrated thread and some comments may be shown as answers.

how to add hyperlink in a item template

1 Answer 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Venkatesh
Top achievements
Rank 1
Venkatesh asked on 11 Feb 2011, 11:22 AM
I have added hyperlink in item template of radgrid . But it is not  appearing as a link. Please solve this issue. Attached the screen shot.

<asp:HyperLink runat="server" ID="hlkRunLM" Text="RunLM" Font-Size="Small">
                                                                   </asp:HyperLink>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Feb 2011, 12:03 PM
Hello Venkatesh,


Without setting NavigateUrl for HyperLink, the control renders  as <a> without href property, which means it will looks like normal text only. Set the NavigateUrl and see whether you ggot expected result.        

<

 

asp:HyperLink NavigateUrl="#" runat="server" ID="hlkRunLM" Text="RunLM" Font-Size="Small">

 

 

</asp:HyperLink>

 




Thanks,
Princy.
Tags
Grid
Asked by
Venkatesh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or