我正在创建一个在线注册系统。当用户填写表单并点击提交时,下一页应显示该用户信息。使用两种功能的Request.Form
protected void Page_Load(object sender, EventArgs e)
{
NameValueCollection nvc = Request.Form;
surname.Text = nvc["surname"];
firstname.Text = nvc["firstname"];
birth_year.Text = nvc["birth_year"];
birth_month.Text = nvc["birth_month"];
birth_day.Text = nvc["birth_day"];
citizenship.Text = nvc["citizenship"];
gender.Text = nvc["gender"];
home_address.Text = nvc["home_address"];
}
我不知道人们是如何在适当的方式插入自己的代码... :( – 2013-03-07 09:35:20
什么这个问题......? – gdoron 2013-03-07 09:36:16
我等了10分钟,然后投了我的近距离投票,你根本就没有问一个问题! – gdoron 2013-03-07 09:47:28