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
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