Click here to Skip to main content
15,887,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I am trying to create a Bootstrap using below code.Codes works fine.But the problem is I need to show the tooltip in several line.

String details_compID = "Intern ID: " + ds.Tables[0].Rows[0]["InternID"].ToString();
String details_Name = "Name: " + ds.Tables[0].Rows[0]["NameWithInit"].ToString();
panelName.Controls.Add(new LiteralControl(" "));

I need to break the lines between ID and Name.

Regards.
Praboda M Perera

What I have tried:

String details_compID = "Intern ID: " + ds.Tables[0].Rows[0]["InternID"].ToString();
String details_Name = "Name: " + ds.Tables[0].Rows[0]["NameWithInit"].ToString();
panelName.Controls.Add(new LiteralControl("<td data-toggle='tooltip' title='" + details_compID + "<br>" + details_Name + "' style=background-color:#99CCFF; > </td>"));
Posted
Updated 2-Apr-18 8:30am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900