| " + this.txtLastName.Text + " | "); sb.Append("" + this.txtFirstName.Text + " | "); sb.Append("" + this.txtMiddleInitial.Text + " | "); sb.Append("
Bold Output of text
Hello Everyone,
I am quite new to the c# language, and .ASP is not all that familiar to me either. I have a seemingly simple line of c# code which I need to output Bold text as opposed to standard plain text. The code you see here is responsible for outputting content into an email. Here is a sample line of code.
sb.Append(" ");
sb.Append("
");
Basically I would like "this.txtFirstName.Text" to be Bold in the resulting Email. I am sure there isa imple explanation but I am a novice when it comes to this topic. Thank you so much for your help in advance.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

shekhar pawar71 reputationPosted Nov 28, 2006, 1:27 AM EST
You can better use " your text which should be BOLD " to make bold text.
So you code will be as below.
sb.Append(" LAST NAME: " + this.txtLastName.Text + " ");
sb.Append(" FIRST NAME: " + this.txtFirstName.Text + " ");
sb.Append(" MIDDLE INITIAL: " + this.txtMiddleInitial.Text + " ");
Try it.