Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a multi-line "Title" for a row tag

Status
Not open for further replies.

ob1kanobee

Programmer
Dec 27, 2002
47
0
0
US
String sTitle = "Display One Value"

On the Title of my row <TR>, I want to display a variable that contains multi-lines,
example:
When hovering the row, I would like user to see:
"Display Value 1"
"Display Value 2"
Instead of "Display Value 1 Display Value 2"
Can this be done using Java code?

Here's what I tried:
String val1 = "Display Value 1";
String val2 = "Display Value 2";

String valToDisplay = val1 + "<br>" + val2;
<TR Title="<%=valToDisplay%>">
 
Nevermind, just figured it out.

String valToDisplay = val1 + "\n" + val2;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top