我正在創建一個在線註冊系統。當用戶填寫表單並點擊提交時,下一頁應顯示該用戶信息。使用兩種功能的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