Let's say I have one html web-page (form.html) containing a simple form which is sent using POST method:
<body>
<form name="Form1" method="POST" action="process.aspx">
<input name="firstname" type="text" value="" />
<input name="lastname" type="text" value="" />
<input type="submit" value="Send" name="submit" />
</form>
</body>
Now, in another page at the same directory (process.aspx) I want to process the data in some way. How do I fetch this data? What I tried to do is:
string firstname = Request.Form["firstname"];
string lastname = Request.Form["lastname"];