Sun_china

交流更多,收获更多?

博客园 首页 新随笔 联系 订阅 管理

2007年4月27日 #

摘要: 2007-04-04 09:05一、目前在ASP.NET中页面传值共有这么几种方式:1、表单提交, .form1.submit();.此种方在ASP。NET中无效,因为ASP。NET的表单总是提交到自身页面,如果要提交到别一页面,需要特殊处理。2、链接地址传送接收页面: string str = Request["param1"]3、Session共享发送页面:Session("param1"... 阅读全文
posted @ 2007-04-27 19:19 Sun_china 阅读(255) 评论(0) 推荐(0) 编辑

摘要: 不要使用Response.Redirect,而应该使用Server.Transfere.g// in global.asaxprotected void Application_Error(Object sender, EventArgs e) {if (Server.GetLastError() is HttpUnhandledException)Server.Transfer("MyError... 阅读全文
posted @ 2007-04-27 11:18 Sun_china 阅读(257) 评论(0) 推荐(0) 编辑