开发者

aspx: how can i receive form variables?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜