|
-
Apr 18th, 2002, 02:51 PM
#1
Thread Starter
Hyperactive Member
Running asp's from a new folder.
Hi,
I just moved my asp scripts to a new folder, now they don't work.
I had everything in the wwwroot folder but decided to group the scripts into their own folders based on the function of the scripts.
I have a mainmenu.asp in the wwwroot that does a redirect to the appropriate folder/asp. This works. But once redirected, the asp scripts can't find one another. I can make them work by changing all the redirects, href's, and form actions to folder/whatever.asp.
Question:
Is there a way around this?
Thanks,
Al.
A computer is a tool, not a toy.
-
Apr 18th, 2002, 03:13 PM
#2
Re: Running asp's from a new folder.
Originally posted by Al Smith
Hi,
I just moved my asp scripts to a new folder, now they don't work.
I had everything in the wwwroot folder but decided to group the scripts into their own folders based on the function of the scripts.
I have a mainmenu.asp in the wwwroot that does a redirect to the appropriate folder/asp. This works. But once redirected, the asp scripts can't find one another. I can make them work by changing all the redirects, href's, and form actions to folder/whatever.asp.
Question:
Is there a way around this?
Thanks,
Al.
umm no..if you dont specify where the files are, how can they find them?
-
Apr 18th, 2002, 03:22 PM
#3
Thread Starter
Hyperactive Member
Hi,
Thanks for the reply.
I had thought that a redirect would set the "root"(?) to whatever folder that was redirected to.
Like when you redirect to a new address, everything now runs from that new address.
Al.
A computer is a tool, not a toy.
-
Apr 19th, 2002, 10:37 AM
#4
Black Cat
Is this a server side problem with your ASP or a client side problem with your HTML links?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Apr 19th, 2002, 11:15 AM
#5
Thread Starter
Hyperactive Member
Hi,
Server side.
What I had thought is when I did a Response.Redirect to an Asp script in a new folder, the scripts would use this folder as the root. That is any form actions or href's would look in this folder for the referenced page.
Apparently Response.Redirect doesn't change the "working directory"
It appears that I'm still running from the wwwroot folder even after a redirect.
Al.
A computer is a tool, not a toy.
-
Apr 19th, 2002, 01:20 PM
#6
Black Cat
Well, Reponse.Redirect's effect could be considered client side as the browser would ultimately resolve the URL, same as resolving links.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Apr 19th, 2002, 02:52 PM
#7
Thread Starter
Hyperactive Member
As I'm beginning to see.
I think I was taking Response.Redirect to literally, as in redirect all future responses to this location even when that location is simply another folder on the server.
Thanks for the reply.
Al.
A computer is a tool, not a toy.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|