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("
");
sb.Append("
" + this.txtLastName.Text + "
");
sb.Append("
" + this.txtFirstName.Text + "
");
sb.Append("
" + this.txtMiddleInitial.Text + "
");
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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
shekhar pawarPosted Nov 28, 2006, 6:27 AM
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.