Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends
My name is Sarfaraz. I have just developed a website in HTML and CSS and i want to have a contact form in that website so that a user when filling a contact form can be emailed to my gmail account.
Now, previously I was using a PHP mail form and that was working correctly but now this time i wanted to do the same functionality with asp.net.
please, help me how can i upload a single page asp.net form (contact.aspx)in my website so that when i click the submit button the post method should be contact.aspx page.
Thank you.

Sarfaraz
Posted

1 solution

Steps
  1. Design a Contact Form in Asp.Net using asp controls in aspx page.
  2. Write codes for the functionality in aspx.cs page.
  3. Embed this aspx page inside the HTML page using iFrames.
 
Share this answer
 
Comments
sarfarazbhat 11-Sep-13 0:05am    
Thank you for your help and i am trying that but i am getting an error which is "Server Error in '/' Application."
do i need any other setting actually i copy contact.aspx , contact.aspx.cs and web.xml file on the same direcvtory as that of my html files.
Thank you
Please show me the iFrame Code.
sarfarazbhat 11-Sep-13 7:34am    
Sir the iframe code is:

<iframe id="myIframe" src="default.aspx" height="400" width="100%"></iframe>
default.aspx is present inside the same folder as the html, right?
sarfarazbhat 11-Sep-13 9:35am    
Yes sir exactly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900