|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Server.MapPath returns Drive, not URL
when i do Server.MapPath("directory/file.asp") on a site that I'm working on ... I believe it should come up "http://www.domain.name/directory/file.asp" ... however, it comes back something like this:
"file//c:/webdirectory/directory/file.asp" ... I've never come across this before and not sure what setting needs to be adjusted or set up or whatever. Any help would surely be appreciated. Thanks
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#2
|
||||
|
||||
|
The MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server.
http://www.microsoft.com/windows200...sp/vbob98iw.htm |
|
#3
|
|||
|
|||
|
Quote:
If this is what you are trying to get then try using the ServerVariable collection e.g Code:
Request.ServerVariables("HTTP_REFERER")
I think you need this one but you need to test. Code:
Request.ServerVariables("HTTP_ACCEPT")
B |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Server.MapPath returns Drive, not URL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|