Quote:
Take a look at the final HTML of your form page in the browser. It contains a <form /> from the ASP.NET page and a nested <form /> from your contact form. Nesting forms is not allowed so when you submit the contact form you actually submit your outer form.
|
That did it. I deleted the default text inbetween the <body></body> tags.
Quote:
Try looking into Cross Page PostBacks. You can set the PostBack URL of a *server side* button to the URL of the page you want to submit to. All other controls in your server side form could be simple HTML controls to avoid having their names and IDs changed.
|
That helps. I see it uses JavaScript. I have the name and submit button as server controls, as you can see in the email response I got back.
ctl00$ContentPlaceHolder1$Button1: Submit
ctl00$ContentPlaceHolder1$PersonName: Barrack Obama
email: pres@.XXXgov
howfound: THis is a test.
-----------------------------------------------------------------
This e-mail was generated from a form submission on your website: bdtcomp.com at
8/13/2010 7:35:45 AM
GoDaddy servers are in Phoenix Arizona and they aren't on daylight time, hence their time in the summer is California time.
This is a good link in how to send info to the desination page.
http://www.aspdotnetfaq.com/Faq/How-...n-ASP-Net.aspx
But I am having problems with the SourcePage and DesinationPage.
Right now I am using two server controls and I'm returned a Thank you I will get back to you.
I would like it to say Thank you, [Name] I will get back to you. This will personalize it a bit, and I know clients that if I write them some aspx pages would love this.
It is pretty slick inserting the controls into the markup code as well as the design page. I also fixed up my fancy form a bit, though I am going to work more on it. My tab index was off, so anyone that looked at my copy before, just remember to add after the ID the tabindex from 1, 2, 3, ... otherwise you aggrevate the user.;-)
Santaclaus - I have the Visual C# 2008 Step by Step by John Sharp. If I get a 2010 book I think Imar mentioned one by Wrox.