2个页面传值方法
第一个方法:根据ID直接访问前一页的控件的值
1
TextBox txtValue = new TextBox();
2
txtValue = (TextBox)PreviousPage.FindControl("textBox1");
3
Label1.Text = txtValue.Text;
TextBox txtValue = new TextBox();2
txtValue = (TextBox)PreviousPage.FindControl("textBox1");3
Label1.Text = txtValue.Text;
第二个方法:给前一页设置属性,在第二页中直接访问
浙公网安备 33010602011771号