Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2008, 11:31 AM
Authorized User
 
Join Date: Jul 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to u2clone
Default Building an Email Submission Form

The book so doesn't cover this and I can't find the articles online helpful at all when trying to build a simple form on an ASP.NET 2.0 that takes name, email, etc and then emails me the data when the button is clicked. Sheesh. I am a novice, but most of what I am seeing looks incomplete. I need help. Here is the current form code...

                    <div id="REQUESTFORM" class="formbox">
                        <img align="right" src="images/CandAPlumbing_03.jpg" /><br />
                        <center><asp:TextBox ID="ZipCode" runat="server">Type Your Zip Code</asp:TextBox><br />
                            <asp:DropDownList ID="PlumbingNeed" runat="server" Width="156px">
                            </asp:DropDownList><br />
                            <asp:TextBox ID="FirstName" runat="server"></asp:TextBox><br />
                            <asp:TextBox ID="LastName" runat="server"></asp:TextBox><br />
                            <asp:TextBox ID="Phone" runat="server"></asp:TextBox><br />
                            <asp:TextBox ID="Email" runat="server"></asp:TextBox><br />
                            <asp:Button ID="submission" runat="server" Text="Submit" OnClick="submission_Click" />
                        </center>
                    </div>

My issue is the code behind. I am using the code-behind page and that is where I get totally lost and all the results I find on web searches are not helpful. I am using C# and have GoDaddy as my host for dev, but that will change when I am done.

Can anyone help me on the getting this thing to email me? Once I learn the how to and why, I should be OK in the future, but what I have seen usually skips a step or slice of code hence losing me in the process.

Thanks!

__________________
\"Freedom is the right of all sentient beings\" - Optimus Prime
 
Old February 11th, 2008, 12:12 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Not sure what your search critera is but Google has a quarter of a million results on this topic:

http://www.google.com/search?source=...sending+emails

And this article is pretty much to the point:
http://aspalliance.com/679



================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old February 11th, 2008, 12:32 PM
Authorized User
 
Join Date: Jul 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to u2clone
Default

The aspalliance link is in VB, not C# and that is part of the problem. I find more VB than c# and the C# ones just aren't helpful. I guess I am looking for a full template of what the codebehind should look like, and what each part does. I'm still really green with some of this stuff that requires lots of C# coding.

"Freedom is the right of all sentient beings" - Optimus Prime





Similar Threads
Thread Thread Starter Forum Replies Last Post
form submission...help!? mdbrueckner ASP.NET 2.0 Basics 1 September 19th, 2007 06:16 PM
Form Submission - Sending Mail - Help tact_259 PHP How-To 0 April 11th, 2005 11:22 PM
Simple Form Submission Maxood Beginning PHP 3 July 17th, 2004 06:03 AM
conditional form submission moushumi Classic ASP Basics 1 March 30th, 2004 08:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.