tooltip from codebehind
-
I had set the tooltip for a hyperlink inside a html table in code behind Page_Load and thought it will work but it didn't.So how to make it work from code behind?.
I am too late but i will never give up
Post your code
please don't forget to vote on the post that helped you.
-
Post your code
please don't forget to vote on the post that helped you.
I don't have the code in this computer.But you can simply try it by 1-creating a page 2-add asp:hyperlink control 3- in code behind set the tooltip property for the Hyperlink control in the page_load event handler to any value like "good". If it works with you please tell me.
I am too late but i will never give up
-
Post your code
please don't forget to vote on the post that helped you.
-
I don't have the code in this computer.But you can simply try it by 1-creating a page 2-add asp:hyperlink control 3- in code behind set the tooltip property for the Hyperlink control in the page_load event handler to any value like "good". If it works with you please tell me.
I am too late but i will never give up
I tried the steps... But I am able to see the tooltip. May be you can try like, C#:
HyperLink1.Attributes.Add("title","Good");
VB:
HyperLink1.Attributes.Add("title","Good")
here is "title" is the attribute used in HTML to show the tooltip.
Venkatesh Mookkan My: Website | Yahoo Group | Blog Spot
-
I tried the steps... But I am able to see the tooltip. May be you can try like, C#:
HyperLink1.Attributes.Add("title","Good");
VB:
HyperLink1.Attributes.Add("title","Good")
here is "title" is the attribute used in HTML to show the tooltip.
Venkatesh Mookkan My: Website | Yahoo Group | Blog Spot
Hi, I observed it is working in Firefox browser without any problems?!What could prevent it from working in IE? The aspx code is as following: <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server"> <div style=" text-align:center; padding-top:100px;"> <table> <tr> <td><div class="Table_01"> <div class="str3-01"> <img src="images/str3_01.gif" width="530" height="49" alt=""> </div> <div class="str3-02"> <img src="images/str3_02.gif" width="198" height="79" alt=""> </div> <div class="str3-03"> <asp:Hyperlink NavigateUrl="../Managers/Managers.aspx?ID={0}" runat="server" id="a1" ToolTip="good" > <img src="images/str3_03.gif" width="139" height="29" border="0" alt=""></asp:Hyperlink> </div> <div class="str3-04"> Iam trying setting the tooltip for the a1 hyperlink in codebehind.I tried using AddAttribute but it didn't work.
I am too late but i will never give up