|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
response.redirect("\")---backslash problem
How come when I try using response.redirect("\"), the backslash is read as %5C?
For example, the below example does not work.. <% response.redirect("\default.asp") %> Instead of going to the default.asp of the parent folder, url is read as /%5Cdefault.asp. Please help, this is pissing me off. |
|
#2
|
|||
|
|||
|
Response.Redirect will send the browser to a URL. There are no backslashs' in URLs. You should be using Response.Redirect("/default.asp").
As for getting to the parent folder, not sure you can do it very simply (or as simply as that) because using "..default.asp" wont work either. What you could do, is get Request.ServerVariables("SCRIPT.NAME") which includes the path from root to the script, and work out what the parent folder is using the "/" positions etc. |
|
#3
|
|||
|
|||
|
or just use the URL
response.redirect "http://www...etc" jason |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > response.redirect("\")---backslash problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|