Results 1 to 7 of 7

Thread: Running asp's from a new folder.

  1. #1

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330

    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.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    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?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    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.

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  5. #5

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    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.

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  7. #7

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    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
  •  



Click Here to Expand Forum to Full Width