Thursday, March 12, 2009

how to Post data from html using asp.net as a backend?

Some times you want to post your data from html page..
do this was a really simple task

<form method="post" action="URL" id="frmAddmissionEnquiry">
<input type="text" id="txtname" />
<input type="text" id="txtEmail" />
</form>


Capturing the same in asp page.
Request.Form["txtname"].ToString()


Returing back to the same form
Response.Redirect(Request.UrlReferrer.ToString());

No comments:

Post a Comment