line break syntax for tooltip on asp.net hyperlink control
-
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. -
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. -
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");
-
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");
-
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");
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.
-
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.
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.
-
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.
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.
-
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.
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.