Passing Values between ASP.NET Web Forms
http://www.dotnetbips.com/displayarticle.aspx?id=79
http://www.dotnetbips.com/displayarticle.aspx?id=79
解决方案 »
- 控制台给Winform 传递参数 第二次一直为:未将实例转换成对象
- 如何将事件赋给另一事件
- c#+oracle开发的winform程序打包安装问题
- 二次开发!
- 在后台TextBox中敲入回车后如何让其在前台换行
- %%%%%%%%%%%%%50分快来人啊,简单的问题,循环输出几行数据%%%%%%%%%%%%
- 我写退出的脚本出了点问题,大家帮我看看,应该怎么修改?
- C#应用程序发布后,客户机不能查看水晶报表,怎么处理(急)
- 请教!请教!Web Service高手请进!
- 请问在C#中怎么使用WINDOWS的API函数,如MessageBox这个函数?????
- datagrid中CHeckBox的实现
- 如何在更新Access时使用OleDbCommandBuilder
Session[]
Server.Transfer() // 麻烦点。
Session["ID"]=TextBoxID.text;
...webform2中
if (Session[ID]!=null)
TextBox1.text=Session["ID"].tostring();
use
public void function(.......)
{
Response.Redirect("WebForm2.aspx? id="+param);//param is you variable
}
or you can also use session or cookie;
Session["flag"]=param;WebForm2
string str=Request["id"].ToString();//the id is that in Response.Redirect
// ("WebForm2.aspx? id="+param);
or string str=Session["flag"]and the Request["id"] equal to Request.QueryString["id"];