Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,

I am using String Builder for get a result set. Here I want to change the design some part of the result set.

Here is the code. When I use this code it changes all font of the result set.
C#
sb.Append( "<i>"+"Heart Disease" +"<i />"+ " :  " + dr["heart_Disease2"] + "<br />");

I want Italic font for Heart dieses but it makes all the line as italic.

Thanks & Regards Bigyan Sahoo
Posted
v2

Because the closing tag is wrong. Try the following code.
C#
sb.Append( "<i>"+"Heart Disease" +"</i>"+ " :  " + dr["heart_Disease2"] + "<br />");
 
Share this answer
 
That is because your closing tag is wrong. See http://www.w3schools.com/html/html_intro.asp[^].
 
Share this answer
 

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