Solved

very easy quick question

Posted on 2012-03-15
6
221 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 250 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 125 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 125 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 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

Independent Software Vendors: 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!

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

691 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