I want to post a form on html and process the variables with asp.net code, like writing a php code. do I have to use <% %> or can I create an empty file with
<script runat=server>
</script>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You just need to get the postback values using the Request.Form.
This exposes all the input values in properties.
Look at this:
HttpRequest.Form
If you have an iput with id “name”, you can read the user input like so:
The result is always a string, so that you’ll need to parse it to convert it to another data type.