Newbie - Form to mail help

T

thereaper

Hi there

I am trying to do a form to email script.
I am using normal TextBox controls:
eg. <asp:TextBox id="email" runat="server" />
These are working just fine, because I can reference them in the body of my
e-mail like so: "<html>..." + email.Text + "....</html>";

The problem comes in when I try reference DropDownList values !
I tried: "<html>..." + myDropdown.Text + "....</html>";
I tried: "<html>..." + myDropdown.Value + "....</html>";

The same story with TextAreas
I tried: "<html>..." + myTextarea.Text + "....</html>";
I tried: "<html>..." + myTextarea.Value + "....</html>";

Please can someone tell me how to reference non TextBox values from a form.
Thanks.

Byron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top