Author: Aliniuz | Posted on: 4/26/2010 6:00:35 AM | Views : 312

Hello there,


I have one question. Is it possible to read POST variables using Asp.net?
To make myself clear, I'll give you an example.
Let's say I have this HTML file, form.html. And I want to send some data using the POST method to a Default.aspx file.

<form action="Default.aspx" method="post"> <label for="name">Your Name:</label> <input type="text" id="name" name="name" /> <label for="age">Your Age:</label> <input type="text" id="age" name="age" /> </form>
Is there any way I can read those POST variables (name and age) in my Default.aspx file?
In PHP this is the way to read the POST vars.
<?php echo $_POST['name']; echo $_POST['age']; ?>
I would li ...

Go to the complete details ...