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. General Programming
  3. C#
  4. line break syntax for tooltip on asp.net hyperlink control

line break syntax for tooltip on asp.net hyperlink control

Scheduled Pinned Locked Moved C#
csharpasp-nethelpquestion
8 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.
  • L Offline
    L Offline
    Lara Nabozny
    wrote on last edited by
    #1

    I need to display multiple lines of information on a hyperlink mouseover for a web application. The mouseover works fine, but niether "
    " nor "\n" works to get a linebreak into the tooltip text. Can someone please help? Thanks.

    L 1 Reply Last reply
    0
    • L Lara Nabozny

      I need to display multiple lines of information on a hyperlink mouseover for a web application. The mouseover works fine, but niether "
      " nor "\n" works to get a linebreak into the tooltip text. Can someone please help? Thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Environment.NewLine?

      L 1 Reply Last reply
      0
      • L Lost User

        Environment.NewLine?

        L Offline
        L Offline
        Lara Nabozny
        wrote on last edited by
        #3

        Thanks, but no dice - Environment.NewLine.Insert(0, "sometext") does not put a line break into the Tooltip, Environment.NewLine has no effect either this thing seems bent on ignoring whitespace. my code lokks like this: H.ToolTip = "Date of Order: " + Convert.ToDateTime(dataread["DateStamp"].ToString()).ToString("MM/dd/yyyy HH:mm") + Environment.NewLine.Insert(0, "sometext");

        L V 2 Replies Last reply
        0
        • L Lara Nabozny

          Thanks, but no dice - Environment.NewLine.Insert(0, "sometext") does not put a line break into the Tooltip, Environment.NewLine has no effect either this thing seems bent on ignoring whitespace. my code lokks like this: H.ToolTip = "Date of Order: " + Convert.ToDateTime(dataread["DateStamp"].ToString()).ToString("MM/dd/yyyy HH:mm") + Environment.NewLine.Insert(0, "sometext");

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Perhaps something like this?[^] Btw this would have been more appropriate in the ASP forum.

          1 Reply Last reply
          0
          • L Lara Nabozny

            Thanks, but no dice - Environment.NewLine.Insert(0, "sometext") does not put a line break into the Tooltip, Environment.NewLine has no effect either this thing seems bent on ignoring whitespace. my code lokks like this: H.ToolTip = "Date of Order: " + Convert.ToDateTime(dataread["DateStamp"].ToString()).ToString("MM/dd/yyyy HH:mm") + Environment.NewLine.Insert(0, "sometext");

            V Offline
            V Offline
            Vikram A Punathambekar
            wrote on last edited by
            #5

            I have no idea if this actually helps you, but you are using Environment.NewLine the wrong way. It's used to insert a new line like this: string s = "Ladies and gentlemen..." + Environment.NewLine + "Welcome to my new lair!";

            Cheers, Vıkram.


            I don't suffer from insanity, I enjoy every moment of it.

            L 1 Reply Last reply
            0
            • V Vikram A Punathambekar

              I have no idea if this actually helps you, but you are using Environment.NewLine the wrong way. It's used to insert a new line like this: string s = "Ladies and gentlemen..." + Environment.NewLine + "Welcome to my new lair!";

              Cheers, Vıkram.


              I don't suffer from insanity, I enjoy every moment of it.

              L Offline
              L Offline
              Lara Nabozny
              wrote on last edited by
              #6

              Thanks for the pointer, I have unfortunately come to the conclustion after trying even an ASCII carriage return that the Web Hyperlink Tooltip displays all whitespace as a single space. So, I will either have to clutter an already busy dynamic display or figure out how to get the AJAX to update just my popup panel instead of the entire page.

              V 1 Reply Last reply
              0
              • L Lara Nabozny

                Thanks for the pointer, I have unfortunately come to the conclustion after trying even an ASCII carriage return that the Web Hyperlink Tooltip displays all whitespace as a single space. So, I will either have to clutter an already busy dynamic display or figure out how to get the AJAX to update just my popup panel instead of the entire page.

                V Offline
                V Offline
                Vikram A Punathambekar
                wrote on last edited by
                #7

                This is an ASP.NET question, you are more likely to get better help in the ASP.NET forum. HTML collapses all contiguous whitespace into a single whitespace. If you want to use multiple whitespace characters, use   For the line break, have you tried <BR> ? I have no idea if it will work in your case, but that's the line break tag in HTML. Sorry if you know all of this: I'm assuming you're a beginner, no offence meant.

                Cheers, Vıkram.


                I don't suffer from insanity, I enjoy every moment of it.

                L 1 Reply Last reply
                0
                • V Vikram A Punathambekar

                  This is an ASP.NET question, you are more likely to get better help in the ASP.NET forum. HTML collapses all contiguous whitespace into a single whitespace. If you want to use multiple whitespace characters, use   For the line break, have you tried <BR> ? I have no idea if it will work in your case, but that's the line break tag in HTML. Sorry if you know all of this: I'm assuming you're a beginner, no offence meant.

                  Cheers, Vıkram.


                  I don't suffer from insanity, I enjoy every moment of it.

                  L Offline
                  L Offline
                  Lara Nabozny
                  wrote on last edited by
                  #8

                  None taken, yes
                  and \n is the first thing I tried actually, no I am definately not a beginner at this but sometimes one has to look at the basics which can become more difficult the more experienced one becomes. Thanks for your thoughts on this, I am going to persue another solution.

                  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