Web Site Default Document

Discussion in 'ASP .Net' started by Just D., Oct 27, 2005.

  1. Just D.

    Just D. Guest

    Does anybody know how to set the Default Document (like Start.aspx) to a new
    Virtual Directory? I found this article on the Internet and read with the
    interest.

    http://www.c-sharpcorner.com/Code/2002/July/CreateVirtualDirs.asp

    The code is simple and the most important thing - it works. What I could not
    find on the Internet is how to set the default document for the just created
    Virtual Directory (Properties, Documents,...), say my document should not be
    like "Default.html", but "Start.aspx". So using the example I wrote the app
    to create the virtual directory for my WebApp. The problem is to reset the
    list of default documents created by default and add my own document.

    Any idea how to do that?

    Regards,
    Dmitri.
    Just D., Oct 27, 2005
    #1
    1. Advertising

  2. Just D.

    Patrice Guest

    The property you are after is DefaultDoc :
    http://msdn.microsoft.com/library/d...html/f2f23770-98a4-4519-b6ee-6265b2f5d222.asp
    and browse around for the IIS SDK documentation.

    --
    Patrice

    "Just D." <> a écrit dans le message de
    news:4Y78f.60678$WR2.26606@fed1read03...
    > Does anybody know how to set the Default Document (like Start.aspx) to a

    new
    > Virtual Directory? I found this article on the Internet and read with the
    > interest.
    >
    > http://www.c-sharpcorner.com/Code/2002/July/CreateVirtualDirs.asp
    >
    > The code is simple and the most important thing - it works. What I could

    not
    > find on the Internet is how to set the default document for the just

    created
    > Virtual Directory (Properties, Documents,...), say my document should not

    be
    > like "Default.html", but "Start.aspx". So using the example I wrote the

    app
    > to create the virtual directory for my WebApp. The problem is to reset the
    > list of default documents created by default and add my own document.
    >
    > Any idea how to do that?
    >
    > Regards,
    > Dmitri.
    >
    >
    Patrice, Oct 27, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mike kim
    Replies:
    2
    Views:
    521
    clintonG
    Aug 20, 2003
  2. =?Utf-8?B?UHJhbmFi?=

    Create ASP.NET web application in the Default Web Site

    =?Utf-8?B?UHJhbmFi?=, Mar 25, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    567
    =?Utf-8?B?UHJhbmFi?=
    Mar 25, 2005
  3. Tiddley-Pom
    Replies:
    5
    Views:
    424
    Mark Parnell
    Oct 15, 2003
  4. mark4asp
    Replies:
    1
    Views:
    1,130
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Mar 24, 2007
  5. Replies:
    0
    Views:
    439
Loading...

Share This Page