tags:

views:

15

answers:

1

Hello. I'n new to asp, i would like to know how to receive form variables,

for example:

<form id="test" method="post" action="test.aspx">
 <input type="text" name="the_name"/>
 <input type="submit"/>
</form>

how can i receive properly the the_name value ?

thanks

+1  A: 

in your code behind test.aspx.cs file you can do the following:

string theName = Request["the_name"]);
BrokenGlass
Request.Form["the_name"] will be a little more efficient
Ray