[thelist] ASP.net question (forms)

Michael Pack michaelpack at wvdhhr.org
Fri Mar 4 14:59:14 CST 2005


Hi Tom,

Not much difference at all doing a one page (no code behind) web form
to grab the data from the form.

Dim var  AS String
var  =    textboxname.Text

and for Drop Downs....

Dim var  AS String
var  =  DropDownName.SelectedItem.Value

Hope this helps....

I'm sending you a recent one page form offlist I did that submits via
email for your information.

Regards,
MP


>>> "Tom Dell'Aringa" <pixelmech at yahoo.com> 3/4/2005 3:00:02 PM >>>
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:
---------------------------------------------
<% @Page Language="C#" Debug="true" %>
<% @Import Namespace="System.Web.Mail" %>
<%
MailMessage msgMail = new MailMessage();

msgMail.To = "tom at asdf.com";
msgMail.From = "no-reply at asdf.com";
msgMail.Subject = "eHandbook Feedback";

msgMail.BodyFormat = MailFormat.Html;
string strBody = "<html><body><h2>eHandbook Feedback</h2>" +
   "<p>Comments:</p>" +
   "</body></html>";
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


http://www.pixelmech.com/ 

Melissa: Ace, Where are you?
Ace Ventura: I'm in Psychoville and Finkle's the Mayor.

-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/ 

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 


More information about the thelist mailing list