Request Property
|
Function and Example
|
ApplicationPath
|
Returns the a Web server relative path to your application root
/WestwindWebStore/
|
PhysicalApplicationPath
|
Returns a local file system path to your application root
D:/inetpub/wwwroot/WestWindWebStore/
|
PhysicalPath
|
Returns the full file system path to the currently executing script
D:/inetpub/wwwroot/WestWindWebStore/Item.aspx
|
CurrentExecutionFilePath
FilePath
Path
|
In most situations all of these return the virtual path to the currently executing script relative to the Web Server root.
/WestwindWebStore/item.aspx
|
PathInfo
|
Returns any extra path following the script name. Rarely used – this value is usually blank.
/WestwindWebStore/item.aspx/ExtraPathInfo
|
RawUrl
|
Returns the application relative URL including querystring or pathinfo
/WestwindWebStore/item.aspx?sku=WWHELP30
|
Url
|
Returns the fully qualified URL including domain and protocol
http://www.west-wind.com/Webstore/item.aspx?sku=WWHELP30
|
Page.TemplateSourceDirectory
Control.TemplateSourceDirectory
|
Returns the virtual path of the currently executing control (or page). Very useful if you need to know the location of your ASCX control instead of the location of the page.
/WestwindWebStore/admin
|
相关推荐
这种方法在《技巧/诀窍:在ASP.NET中重写URL》这篇文章提到的。简单的说,大家都知道: 代码如下://www.jb51.net/product.aspx?id=520对搜索引擎的友好性肯定低于 //www.jb51.net/product.aspx/520.htm 先截张图给...
本讲将通过实例比较ASP.NET下的三种典型URL重写方案——ISAPI重写(使用开源组件IIRF),ASP.NET2.0内置的urlMappings和基于自定义HTTPModule的URL重写(使用NBear.Web中的UrlRewriteModule实现),并探讨URL重写中...
使用ASP.NET路由可以避免404 Not Found错误。
本文实例讲述了ASP.NET编程获取网站根目录方法。分享给大家供大家参考,具体如下: 获取网站根目录的方法有几种如: Server.MapPath(Request.ServerVariables[“PATH_INFO”]) Server.MapPath(“/”) Server.MapPath...
在MVC的逻辑代码里,Controller和Action是必须的,但是在网址里,并不需要完全体现Controller和Action。... 默认的路由规则 ... public static void ...routes.IgnoreRoute({resource}.axd/{*pathInfo}); routes.MapRoute
Server.MapPath(Request.ServerVariables[“PATH_INFO”]) Server.MapPath(“/”) Server.MapPath(“”) Server.MapPath(“.”) Server.MapPath(“../”) Server.MapPath(“..”) Page.Request.ApplicationPath ...
PATH_INFO PATH_TRANSLATED QUERY_STRING REMOTE_ADDR REMOTE_HOST REMOTE_PORT REQUEST_METHOD SCRIPT_NAME SERVER_NAME SERVER_PORT SERVER_PORT_SECURE SERVER_PROTOCOL SERVER_SOFTWARE URL ...
http://php.net/asp-tags asp_tags = Off ; The number of significant digits displayed in floating point numbers. ; http://php.net/precision precision = 14 ; Output buffering is a mechanism for ...
在ASP.NET中上传图片并生成缩略图的C#源码 <FONT size=4><FONT size=4><FONT size=4>using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using ...
此问题问题唯一搞的地方就是在config.m4中折腾出正确的Makefile,因为Zend的教程中没有提到,俺自己也折腾了好久,才搞出来。 二、实际操作 1.建立工作环境 将php源码包解开,我的版本的php-4.4.4,转到源码...
Windows平台下也有好多人都喜欢用SourceInsight编辑C/C++程序,如果将pclint集成到SourceInsight中,那就相当于给SourceInsight增加了一个C/C++编译器,而且它的检查更严格,能发现一些编译器发现不了的问题,可以...
ASP组件AspJpeg(加水印)使用方法大全ASPJPEG是Persits出品的共享软件,它是一款功能相当强大的asp图象处理组件,用它可以轻松地做出图片的缩略图和为图片加上水印功能。 水印组件AspJpeg2.4.0.1 下面简单介绍一下...
.\ Info directory .\Install Component packages project groups for all versions .\Packages (was Delphi\Vc32) Delphi (7 and up) and C++Builder (2006 and up) packages projects .\Source (was Delphi\Vc32) ...
asp: request.servervariables("HTTP_REFERER") javascript: document.referrer 释放内存 CollectGarbage(); 禁止右键 document.oncontextmenu = function() { return false;} 禁止保存 <noscript>...