HyperLinkField

G

Guest

Does anyone know how to set the 'title' (or ToolTip) property on a
HyperLinkField inside of a GridView???? There doesn't seem to be any
properties assigned for that task.

TAI,
Mike
 
G

Guest

Use a template field.... Like this:

<asp:TemplateField HeaderText="Href">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#
Eval("Href") %>' Text='<%# Eval("Href") %>' ToolTip='<%# Eval("Text")
%>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top