开发者

aspx: how can i receive form variables?

开发者 https://www.devze.com 2023-01-16 20:44 出处:网络
I\'n new to asp, i would like to know how to receive form variables, for example开发者_运维百科:

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


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

string theName = Request["the_name"]);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号