I have the web page (www.tapdat.net ) written in html. I have also created a form on this web page, but I do not have any idea how to create the aspx page to capture and email to me (via my mailserver), the data the user enters and submits through the form. Any help on this would be great!
How to write an aspx page to capture the content of my form from html web page
Collapse
X
-
J wuTags: None -
It sounds like you have a simple email page but, since it's plain HTML, you cannot send emails.
It's pretty simple to send an email in ASP.NET :)
This quick reverence on how to send an email using .NET covers how to accomplish this task.
The problem that you're going to have is submitting the content from your plain HTML form to an ASPX page that will do the email sending for you.
Since your page does not sound like it's too complicated, I recommend that you create an ASPX page instead of using the HTML page (it wouldn't take very long to create the aspx page to replace your existing HTML page). It will simplify things a lot if you do so.
-Frinny -
Frinny is right..If still wish to go with your page to be HTML..Then try this..
Add a iFrame to your HTML with source pointing to your aspx page. The aspx contains only the widgets for input to be mailed and as well be part of your HTML. Put your mailing code in the aspx submit.
Hope helps..Comment
-
Aspdotnetuser, using an iFrame was one of the first things came to my mind as well but the fact remains that the HTML page cannot send emails. In other words, from what I understand of the question, the HTML page must submit the information it has gathered to server-side code that can send the email. J Wu would like to submit to an ASP.NET server side script. This is possible, but it would be much easier if the HTML page was actually an ASPX page.
Actually, now I think that J Wu might be interested in implementing a Web Service that can be called via JavaScript with the information gathered. It would be an interesting approach :)Comment
Comment