SendEmail - syntax for both name and address

I'm just trying a simple email form. I can't find the syntax necessary to have the user send me both their name and email address in separate TextBoxes.

Sounds simple, yet not so much...

Using code from:http://aspnet.4guysfromrolla.com/articles/072606-1.aspx

Trying to add:

<td>Your Name:</td>

<td><asp:TextBoxrunat="server"ID="DisplayName"Columns="30"></asp:TextBox></td>

Where do I put

From = DisplayName.Text ?

Thanks

[1647 byte] By [cpt_safety] at [2007-12-27]
# 1

you are probably best asking this question on the ASP.NET forums:

http://forums.asp.net

basically once you placed your controls on the form, and a button to send email, the code behind on the button click event will take the values from the textboxes and correctly place it in the right email object to send data. Example in your code is the textbox named "DisplayName" - from code behind....

string name = this.DisplayName.Text;

would get the value of what the user entered in the textbox "DisplayName"

ahmedilyas at 2007-9-3 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified