?
Solved

very easy quick question

Posted on 2012-03-15
6
Medium Priority
?
222 Views
Last Modified: 2012-03-16
imgPhoto.ToolTip = row["Name"].ToString()  + row["country"].ToString();

I need to add a <br/> so I can see country on the next line not beside the name. How can I do that?
0
Comment
Question by:1jaws
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 1000 total points
ID: 37727992
I don't believe you can have line breaks in the standard web "tooltip". I believe you would need to use something like a CSS tooltip or a Javascript tooltip.
0
 
LVL 19

Assisted Solution

by:Rikin Shah
Rikin Shah earned 500 total points
ID: 37728021
Not sure about how it can be achievable-

Give this a try-
imgPhoto.ToolTip = row["Name"].ToString()  + "<br />"  + row["country"].ToString();

OR

imgPhoto.ToolTip = row["Name"].ToString()  + "\n" + row["country"].ToString();


Regards,
Rikin.
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 500 total points
ID: 37728030
Try the following (it worked for me here in a simple asp.net page)

imgPhoto.ToolTip = row["Name"].ToString()  + Environment.NewLine + row["country"].ToString();

or

imgPhoto.ToolTip = row["Name"].ToString()  + "\r\n" + row["country"].ToString();
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 1000 total points
ID: 37728045
it worked for me here in a simple asp.net page
Which begs the question:  which browsers (note the plural) did you test with? This did not work for me under FF 10, however IE and Opera did work. I don't have Chrome or Safari installed, so I don't know about those.
0
 

Author Comment

by:1jaws
ID: 37730111
not working guys, has to work with all browsers
0
 

Author Closing Comment

by:1jaws
ID: 37730535
Thanks for the effort!
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question