Web Analytics Made Easy -
StatCounter How to connect to default folder in ASP - CodingForum

Announcement

Collapse
No announcement yet.

How to connect to default folder in ASP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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>
    aspxtreme

    Comment


    • #3
      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. ;)

      Comment

      Working...
      X