Author: Ciwan | Posted on: 11/26/2010 11:26:56 AM | Views : 404

Hello Everyone
I have created an ASP.NET website, so far it hasn't got much in it.
I have a Master Page which I have styled using CSS and Images ... etc
That's all fine ! no problems there.
Now to the problem:
I have created a Web Form based on the Master Page. I have called the Web Form { Contact.aspx } ! VS 2010 creates a C# file for it, for the coding.
Inside the Contact page I have created a Contact Form which Emails me the message via SMTP. and All the code to handle the contact form is in the { Contact.aspx.cs } file (C# File).
In the C# file I have created a Method that would clear the Text Boxes (asp.net controls) when the user submits the form. Within that code I have:

Control control = form1.Controls;
When running the app I get an error saying Form1 does not exist ! how come ? cause it sure exists in the master page !
I would greatly appreciate any help.
T ...

Go to the complete details ...