Javascript
Location Property result
Location. Hash # Test
Location. Host localhost: 1351
Location. hostname localhost
Location. href {
Return checkurl (this)
} "Href =" http: // localhost: 1351/website1/DIR/default. aspx/adsf? Id = 12 # test "target =" _ blank "> http: // localhost: 1351/website1/DIR/default. aspx/adsf? Id = 12 # Test
Location. pathname/website1/DIR/default. aspx/adsf
Position. Port 1351
Location. protocol HTTP:
Location. Search? Id = 12
ASP. NET
Request property result remark
Request. applicationpath/website1
Request. physicalapplicationpath C:/Documents and Settings/wstone. spansion/desktop/website1/
Physical path of the application root directory
Request. physicalpath C:/Documents and Settings/wstone. spansion/desktop/website1/DIR/default. aspx
Physical path of the current request
Request. pathinfo/adsf additional path information
Request. rawurl/website1/DIR/default. aspx/adsfid = 12 path of the Request relative to the application root directory
Request. url {
Return checkurl (this)
} "Href =" http: // localhost: 1351/website1/DIR/default. aspx/adsf? Id = 12 "target =" _ blank "> http: // localhost: 1351/website1/DIR/default. aspx/adsf? Id = 12 complete path of the current request (not included after)
Request. currentexecutionfilepath/website1/DIR/default. aspx
Request. filepath/website1/DIR/default. aspx
Request. Path/website1/DIR/default. aspx/adsf
Request. servervariables ["SERVER_NAME"] localhost
Request. servervariables ["server_port"] 1351
Request. servervariables ["server_port_secure"] 0
Server. mappath ("~ ")
C:/Documents and Settings/wstone. spansion/desktop/website1
Server. mappath ("~ /")
C:/Documents and Settings/wstone. spansion/desktop/website1/
Server. mappath ("~ /1.jpg ")
C:/Documents and Settings/wstone. spansion/desktop/website1/1.jpg