Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Delhi, India
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to connect to default folder in ASP

    Hi!,
    Can any of my friends help me get rid of this. I have a line of code as to activate an ASP page:
    -- http://localhost/xyz/something.asp
    This works fine but like in JSP or Servlets we write:
    ../xyz/soemthing.jsp
    to connect to the default folder. This isn't working in ASP.
    What is the ASP equivalent of it?
    Thanks.
    -Navin.

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Pilipinas
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you meant referencing the application virtual root, simply use:

    /virtualdir/whatever.asp

    or

    /virtualdir/subdir/whatever.asp

    For example, using:

    <a href="/xyz/something.asp">Click me</a>

    is the same as:

    <a href="http://localhost/xyz/something.asp">Click me</a>

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you're talking about how to SET the default page IN your default website folder, that's done in IIS settings.

    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •