使用session,具体如下:
在webform1中:session["sessionName"]=textBox1.text;
在form2中string strText=(string)session[["sessionName"];
在webform1中:session["sessionName"]=textBox1.text;
在form2中string strText=(string)session[["sessionName"];
1.session但必须要考虑过期问题
2.Cookies但必须要考虑用户的IE支持
3.ViewState这一种是推荐的做法,但这是asp.net独有的技术
ms-help://MS.VSCC/MS.MSDNVS.2052/cpguide/html/cpconpassingservercontrolvaluesbetweenpages.htm最后,你为什么起名为"皮仔来了"?
????????!!!!!!!!!!!!!