SPAM-LOW: [thelist] ASP.net question (forms)

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Fri Mar 4 14:58:27 CST 2005


oops... I wrote that in VB.NET by mistake.

string myText = textAreaID.Text;

From: Tom Dell'Aringa 

Hi everyone,

I suddenly inherited an ASP.net issue, I have to send a simple e-mail with the contents of a
feedback form. I already have a script that works to send the e-mail. I am using this:
---------------------------------------------

eHandbook Feedback" +
 "

Comments:" +
 "";
msgMail.Body = strBody;

SmtpMail.Send(msgMail);

Response.Write("Email was queued to disk");
%>
----------------------

This works, but I need to hitch up the actual form data, which consists right now of simply a text
field and a textarea. The form posts to this script. I just need to grab the input data and pass
it along to the script so I can send it in the email.

I have some old ASP stuff but I don't know how to handle this with ASP.net. Can someone clue me
in, or even just point me to a good tutorial?

Thanks

Tom


More information about the thelist mailing list