Post an HTML form to ASP.NET Page
For a web application we wanted to post html page to an ASP.NET page. So I thought of having a blog post about that.
First of all open visual studio and create ASP.NET project. After that you can do rest according to below steps.
1) Create HTML page.
2) Insert form tags and define form method(post) and action(ASP.NET page)
3) Add html controls to the form.
4) Create ASP.NET page for submit HTML form.
5) Set project startup page to HTML page.
6) In ASP.NET page load, you can get all keys of HTML page by Request.Form.AllKeys.
7) Then you can get the HTML control data easily by using Request.Form[sKey];
Download the attached project to get better idea about this.


September 7th, 2009 at 7:58 pm
Very nice site!