摘要:
第一: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>" ); 阅读全文
摘要:
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 阅读全文