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?
1jawsAsked:
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.
0
 
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();

OR

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


Regards,
Rikin.
0
 
DhaestConnect With a Mentor Commented:
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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
käµfm³d 👽Connect With a Mentor Commented:
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
 
1jawsAuthor Commented:
not working guys, has to work with all browsers
0
 
1jawsAuthor Commented:
Thanks for the effort!
0
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.