Sending Mail from ContactForm
This is related to Chapter 9, page 307 and onwards. I am trying to create a ContactForm so that an e-mail can be sent to the user with the information he/she has typed in.
The thing is, my TextBoxes are in FormViews, and my Code Behind says the TextBoxes are not declared, which they are (they all have ID's).
I have created a ContactForm.txt file in my App_Data folder, but I don't have a ContactForm.ascx file, is that really necessary? Can't I just include the ContactForm CodeBehind code in my aspx Code Behind file?
What do I need to do?
Help would be much appreciated!