asp.net页面传递参数的另一种用法 HttpContext.Current.Items
2012-03-28 17:01
603 查看
--------- 页面A -----------
HttpContext.Current.Items.Add("A",
a.Text);
HttpContext.Current.Items.Add("B",
b.Text);
HttpContext.Current.Items.Add("C",
c.Text);
this.Server.Transfer("B.aspx");
------- 页面B -----------------
string strA =
HttpContext.Current.Items["A"].ToString();
string strB = HttpContext.Current.Items["B"].ToString();
string strC = HttpContext.Current.Items["C"].ToString();
HttpContext.Current.Items.Add("A",
a.Text);
HttpContext.Current.Items.Add("B",
b.Text);
HttpContext.Current.Items.Add("C",
c.Text);
this.Server.Transfer("B.aspx");
------- 页面B -----------------
string strA =
HttpContext.Current.Items["A"].ToString();
string strB = HttpContext.Current.Items["B"].ToString();
string strC = HttpContext.Current.Items["C"].ToString();
相关文章推荐
- asp.net中的参数传递:Context.Handler 的用法
- Asp.net的HttpContext.Current.Items详解
- ASP.NET 页面传递URL 指定的参数 不存在 时异常。怎么做判断
- ASP.NET多线程下使用HttpContext.Current为null解决方案
- ASP.NET多线程下使用HttpContext.Current为null解决方案
- asp.net DataList中hyperlink传递参数及打开新页面全解
- 【C#.NET】ASP.NET中实现页面间的参数传递 QueryString\Application\Session\Cookie
- 在ASP.NET中实现页面间的参数传递
- Asp.net页面之间传递参数的几种方法
- c# asp.net webservice asmx中保存HttpContext.Current
- Asp.net页面之间传递参数的几种方法
- ASP.NET 页面间传递参数的方法(转)
- ASP.NET页面通过URL传递参数(一)(转载)
- ASP.NET页面内传递参数方法
- asp.net 页面之间传递参数的几种方法
- ASP.NET状态管理之四(暂存状态HttpContext.Items)
- ASP.NET 页面间传递参数的方法
- ASP.NET状态管理之四(暂存状态HttpContext.Items)
- Asp.net页面间通过Post方式传递参数
- ASP.NET页面间参数的传递