Hi experts,

My asp.net application will send an email to our marketing department when a user filled out the application.
In my strBody of the following code, it will list all 6 strCheckBoxs (string value) from my application. If
However, how to write the lines that only when strCheckBoxs is not an empty string? I mean, skip the line if the strCheckBox is an empty string ""???

Can I use IF--ELSE statement somewhere in this code to eliminate the rows which contains empty string strCheckBox????

Thank you.
--------------------------------------------------------------------------

Dim msgFax As MailMessage = New MailMessage
msgFax.To = "name@domain"
msgFax.From = "webmaster@domain"
msgFax.Subject = "PRIMARY SCHOOL APPLICATION"
msgFax.BodyFormat = MailFormat.Html

Dim strBody As String
strBody = "<h3>BK and PRIMARY SCHOOL </h3>" + "<br>" + _
" __________________________________________________ ________" + "<br>" + _
"
"- CERTIFICATE OF ACHIEVEMENT - " + "<br>" + _
" * " & strCheckBox1 + "<br>" + _
" * " & strCheckBox2 + "<br>" + _
" * " & strCheckBox3 + "<br>" + _
" * " & strCheckBox4 + "<br>" + _
" * " & strCheckBox5 + "<br>" + _
" * " & strCheckBox6 + "<br>" + _
" * Comments : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" & txtComment.Text + "<br>"

msgFax.Body = strBody
SmtpMail.SmtpServer = "server.companyname.com"
SmtpMail.Send(msgFax)