very easy quick question

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?
Who is Participating?
käµfm³d 👽Connect With a Mentor Commented:
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.
Rikin ShahConnect With a Mentor Microsoft Dynamics CRM ConsultantCommented:
Not sure about how it can be achievable-

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


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

DhaestConnect With a Mentor Commented:
Try the following (it worked for me here in a simple page)

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


imgPhoto.ToolTip = row["Name"].ToString()  + "\r\n" + row["country"].ToString();
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

käµfm³d 👽Connect With a Mentor Commented:
it worked for me here in a simple 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.
1jawsAuthor Commented:
not working guys, has to work with all browsers
1jawsAuthor Commented:
Thanks for the effort!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.