摘要:
第一:private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) );}第二:private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " <script language=javascript>window.location.href=document.URL; </script>" ); 阅读全文
posted @ 2012-07-13 16:09
AllanChen
阅读(6547)
评论(0)
推荐(0)
摘要:
HttpContext.Current.Request.Url.PathAndQuery1、通过ASP.NET获取 如果测试的url地址是http://www.test.com/testweb/default.aspx, 结果如下: Request.ApplicationPath: /testweb Request.CurrentExecutionFilePath: /testweb/default.aspx Request.FilePath: /testweb/default.aspx Request.Path: /testweb/default.aspx Request.PhysicalA 阅读全文
posted @ 2012-07-13 16:08
AllanChen
阅读(1977)
评论(1)
推荐(0)

浙公网安备 33010602011771号