Click here to Skip to main content
15,916,379 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: email code for contact us form Pin
enjoycrack12-May-07 4:11
enjoycrack12-May-07 4:11 
QuestionDraw lines on the web page Pin
Nirosh11-May-07 10:48
professionalNirosh11-May-07 10:48 
AnswerRe: Draw lines on the web page Pin
Nirosh11-May-07 12:31
professionalNirosh11-May-07 12:31 
QuestionCreating login page and hiding existing login page of an extranet application. Pin
santosh2611-May-07 10:12
santosh2611-May-07 10:12 
Questionweb farm problem Pin
gus_br11-May-07 8:28
gus_br11-May-07 8:28 
AnswerRe: web farm problem Pin
doWhileSomething13-May-07 9:20
doWhileSomething13-May-07 9:20 
QuestionHow to format textbox data into an email message [modified] Pin
archangel71711-May-07 6:35
archangel71711-May-07 6:35 
AnswerRe: How to format textbox data into an email message Pin
Fred_Smith11-May-07 7:22
Fred_Smith11-May-07 7:22 
You have:

Email.IsBodyHtml = True

So simply insert html <br> tags where you want them, eg:

Email.Body = "A new account was requested by " & txtRequesterFirst.Text & " " & txtRequesterLast.Text & " on " & DateTime.Now.ToString() & ".<br> Employee Name - " & txtFirst.Text & " " & txtMiddle.Text & " " & txtLast.Text

You can add any html you want:- bold, font color etc.

If you want plain text instead set

Email.IsBodyHtml = False

amd insert newlines instead, viz:

Email.Body = "A new account was requested by " & txtRequesterFirst.Text & " " & txtRequesterLast.Text & " on " & DateTime.Now.ToString() & "." & vbCrLf & "Employee Name - " & txtFirst.Text & " " & txtMiddle.Text & " " & txtLast.Text

cheers
Fred


GeneralRe: How to format textbox data into an email message Pin
archangel71711-May-07 8:18
archangel71711-May-07 8:18 
GeneralRe: How to format textbox data into an email message Pin
archangel71711-May-07 11:30
archangel71711-May-07 11:30 
GeneralRe: How to format textbox data into an email message Pin
Ibuprofen17-May-07 2:45
Ibuprofen17-May-07 2:45 
QuestionGet User/Domain Information In ASP.NET Applications Pin
Xiangyang Liu 刘向阳11-May-07 5:45
Xiangyang Liu 刘向阳11-May-07 5:45 
QuestionIs it possible to have an email attachment without saving it on server Pin
NetBot11-May-07 3:51
NetBot11-May-07 3:51 
AnswerRe: Is it possible to have an email attachment without saving it on server Pin
Fred_Smith11-May-07 4:25
Fred_Smith11-May-07 4:25 
GeneralRe: Is it possible to have an email attachment without saving it on server Pin
NetBot11-May-07 16:36
NetBot11-May-07 16:36 
QuestionUserControl and data from Default.aspx ? Pin
steffw11-May-07 2:40
steffw11-May-07 2:40 
QuestionRe: UserControl and data from Default.aspx ? Pin
Sandeep Akhare11-May-07 2:56
Sandeep Akhare11-May-07 2:56 
AnswerRe: UserControl and data from Default.aspx ? Pin
steffw11-May-07 3:01
steffw11-May-07 3:01 
GeneralRe: UserControl and data from Default.aspx ? Pin
Sandeep Akhare11-May-07 3:30
Sandeep Akhare11-May-07 3:30 
AnswerRe: UserControl and data from Default.aspx ? Pin
GgAben11-May-07 3:20
GgAben11-May-07 3:20 
GeneralRe: UserControl and data from Default.aspx ? Pin
steffw12-May-07 23:58
steffw12-May-07 23:58 
GeneralRe: UserControl and data from Default.aspx ? Pin
GgAben13-May-07 18:52
GgAben13-May-07 18:52 
GeneralRe: UserControl and data from Default.aspx ? Pin
steffw13-May-07 20:33
steffw13-May-07 20:33 
QuestionJava Control Validation on ASP.NET Pin
kinsella_john11-May-07 2:22
kinsella_john11-May-07 2:22 
QuestionRe: Java Control Validation on ASP.NET Pin
Sandeep Akhare11-May-07 2:57
Sandeep Akhare11-May-07 2:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.