asp.net中有关URL的信息
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class AjaxDemo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Request.AppRelativeCurrentExecutionFilePath=" + Request.AppRelativeCurrentExecutionFilePath + "<br>");
Response.Write("Request.CurrentExecutionFilePath=" + Request.CurrentExecutionFilePath + "<br>");
Response.Write("Request.FilePath=" + Request.FilePath + "<br>");
Response.Write("Request.Path=" + Request.Path + "<br>");
Response.Write("Request.PathInfo=" + Request.PathInfo + "<br>");
Response.Write("Request.PhysicalApplicationPath=" + Request.PhysicalApplicationPath + "<br>");
Response.Write("Request.PhysicalPath=" + Request.PhysicalPath + "<br>");
Response.Write("Request.RawUrl=" + Request.RawUrl + "<br>");
Response.Write("Request.Url=" + Request.Url + "<br>");
Response.Write("Request.UrlReferrer=" + Request.UrlReferrer + "<br>");
Response.Write("Request.UserHostAddress=" + Request.UserHostAddress + "<br>");
Response.Write("Request.UserHostName=" + Request.UserHostName + "<br>");
Uri uri = Request.Url;
Response.Write("uri.AbsolutePath=" + uri.AbsolutePath + "<br>");
Response.Write("uri.AbsoluteUri=" + uri.AbsoluteUri + "<br>");
Response.Write("uri.Authority=" + uri.Authority + "<br>");
Response.Write("uri.Host=" + uri.Host + "<br>");
Response.Write("uri.HostNameType=" + uri.HostNameType + "<br>");
Response.Write("uri.Scheme=" + uri.Scheme + "<br>");
Response.Write("uri.LocalPath=" + uri.LocalPath + "<br>");
Response.Write("uri.OriginalString=" + uri.OriginalString + "<br>");
Response.Write("uri.PathAndQuery=" + uri.PathAndQuery + "<br>");
Response.Write("uri.Port=" + uri.Port + "<br>");
Response.Write("uri.Segments=");
foreach (string str in uri.Segments)
{
Response.Write( str+ ",");
}
}
Request.AppRelativeCurrentExecutionFilePath=~/AjaxDemo.aspx
Request.CurrentExecutionFilePath=/Web/AjaxDemo.aspx
Request.FilePath=/Web/AjaxDemo.aspx
Request.Path=/Web/AjaxDemo.aspx
Request.PathInfo=
Request.PhysicalApplicationPath=D:\SXJST\Web\
Request.PhysicalPath=D:\SXJST\Web\AjaxDemo.aspx
Request.RawUrl=/Web/AjaxDemo.aspx
Request.Url=http://localhost:4336/Web/AjaxDemo.aspx
Request.UrlReferrer=
Request.UserHostAddress=127.0.0.1
Request.UserHostName=127.0.0.1
uri.AbsolutePath=/Web/AjaxDemo.aspx
uri.AbsoluteUri=http://localhost:4336/Web/AjaxDemo.aspx
uri.Authority=localhost:4336
uri.Host=localhost
uri.HostNameType=Dns
uri.Scheme=http
uri.LocalPath=/Web/AjaxDemo.aspx
uri.OriginalString=http://localhost:4336/Web/AjaxDemo.aspx
uri.PathAndQuery=/Web/AjaxDemo.aspx
uri.Port=4336
uri.Segments=/,Web/,AjaxDemo.aspx,
asp.net中有关URL的信息相关推荐
- 在 ASP.NET 中执行 URL 重写
在 ASP.NET 中执行 URL 重写 发布日期: 8/23/2004 | 更新日期: 8/23/2004 Scott Mitchell 4GuysFromRolla.com 适用范围: Micro ...
- 在ASP.NET中实现Url Rewriting(非常的有价值!)
在ASP.NET中实现Url Rewriting 作者:Scott Mitchell 翻译:Janssen 1.0.请一定要抱着批评的态度来看该文章 1.1. 概要 分析如何使用微软提供的ASP.NE ...
- asp.net中对URL的一些操作
编辑器加载中... 例如当前URI为:http://www.test.com/zzl/renren?id=1 获取绝对URI的路 System.Web.HttpContext.Current.Requ ...
- 在ASP.NET中实现Url Rewriting
概要 分析如何使用微软提供的ASP.NET来对动态产生的URL地址进行网址重写. 网址重写是实现一种截取网址请求并将其进行处理后重新指向到一个指定的网址的过程.作者本人在对各种实现网址重写的技术进行研 ...
- ASP.NET中获取URL重写前的原始地址
在ASP.NET中,如果你使用了URL重写,通过HttpContext.Request获取到的是重写后的地址.如果这个地址要返回给客户端(比如Redirect),我们一般希望是重写前的友好地址. 通常 ...
- 技巧/诀窍:在ASP.NET中重写URL(转)
[原文地址]Tip/Trick: Url Rewriting with ASP.NET [原文发表日期] Monday, February 26, 2007 9:27 PM 经常有人请我指导应该如何动 ...
- 技巧/诀窍:在ASP.NET中重写URL
[原文地址]Tip/Trick: Url Rewriting with ASP.NET [原文发表日期] Monday, February 26, 2007 9:27 PM 经常有人请我指导应该如何动 ...
- 转: 技巧/诀窍:在ASP.NET中重写URL
转: http://blog.joycode.com/scottgu/archive/2007/03/01/94004.aspx [原文地址]Tip/Trick: Url Rewriting with ...
- ASP.NET中数据库应用-身份证信息查询器
// Web版的身份证信息查询 //Default.aspx <% @ Page Language = " C# " AutoEventWireup = " tr ...
最新文章
- ORA-01940无法删除当前已连接用户
- 使用 GNU profiler 来提高代码运行速度
- jvm性能调优实战 - 44Metaspace区域是如何因为类太多而发生内存溢出OOM
- 【学习笔记 】sass教程巩固学习
- 机器学习在销售报价单的产品推荐场景中的作用
- c mysql异常捕获异常,c#基础之异常处理及自定义异常 从SQLServer转储数据到MySQL...
- 过滤器实栗 登录检测
- opencv配置中常见问题
- springboot入门-idea
- a0图框标题栏尺寸_机械制图标准中规定的标题栏尺寸
- 爬取人民邮电出版社书籍信息
- python中property详解
- 6大常见家谱样本,尤其第4个,深受各大名门望族的喜爱!
- 高德地图应用:接口调用权限安全升级( web端API接口加密)(文档篇)
- android 快速开机启动,MTK6577+Android之快速开机
- win7设置电脑保护眼睛颜色(终极方法,提供两种颜色选择)
- a洋发卡网sadnt模板美化
- eclipse java转class_Eclipse中的Java项目:无法解析java.lang.Object类型。 它是从所需的.class文件间接引用的...
- 研发人员一些比较重要的能力指标参考
- 后缀数组 相关问题模板