62,074
社区成员
发帖
与我相关
我的任务
分享
@using(html.beginform()){
@html.textbox("test1")
<input type="text" name="test2" id="test2" />
<input type="submit">
}
controller
public actionresult test()
{
return view();
}
[httppost]
public actionresult test(string test1,string test2)
{
return content("test1的值是:"+test1+"<br>test2的值是:"+test2);
}