Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. tooltip from codebehind

tooltip from codebehind

Scheduled Pinned Locked Moved ASP.NET
htmltutorialquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheEagle
    wrote on last edited by
    #1

    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

    I 1 Reply Last reply
    0
    • T TheEagle

      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

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      Post your code

      please don't forget to vote on the post that helped you.

      T 2 Replies Last reply
      0
      • I Imran Khan Pathan

        Post your code

        please don't forget to vote on the post that helped you.

        T Offline
        T Offline
        TheEagle
        wrote on last edited by
        #3

        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

        V 1 Reply Last reply
        0
        • I Imran Khan Pathan

          Post your code

          please don't forget to vote on the post that helped you.

          T Offline
          T Offline
          TheEagle
          wrote on last edited by
          #4

          I made the test my self inside a table and it works fine. Then I add the page to the master page and it also works fine. It seems that the page need debugging to find what prevent the tooltip from working.

          I am too late but i will never give up

          1 Reply Last reply
          0
          • T TheEagle

            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

            V Offline
            V Offline
            Venkatesh Mookkan
            wrote on last edited by
            #5

            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

            T 1 Reply Last reply
            0
            • V Venkatesh Mookkan

              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

              T Offline
              T Offline
              TheEagle
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups