ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 3rd, 2003, 01:09 AM
soyoho soyoho is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: dallas
Posts: 1 soyoho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old July 3rd, 2003, 03:30 AM
Shad Shad is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 24 Shad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old July 4th, 2003, 07:22 PM
pinhut pinhut is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: devon
Posts: 2 pinhut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to pinhut Send a message via Yahoo to pinhut
or just use the URL

response.redirect "http://www...etc"

jason

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > response.redirect("\")---backslash problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway