You must Sign In to post a response.
  • Category: Suggestions

    How to change the default document.

    There is a page named "CourseInfo.aspx" in my website and There is not a page named "Default.aspx". I want "CourseInfo.aspx" to be my website default page, but how to chang it like in the IIS?
    Thank you very much for you help.
  • #6912

    Doing so requires access to IIS, whose settings are not available on this shared service. You would add "CourseInfo.aspx" to the list of filenames as shown in the following link:

    http://www.iis.net/configreference/system.webserver/defaultdocument

    However, you could establish a workaround by creating a page with one of the predefined names, such as "Default.aspx" and simply calling from within the Page_Load event:

    Response.Redirect("CourseInfo.aspx");

    Hope this helps.

  • #6913
    Thank you very much for your help. This is the first time that I receive a message from a foreign country. I'm really exited and I really did not think that there will be a person reply me and help me. Thank you very much.
    Actually, that day I solve this problem by add a static page named "Default.html" which redirect to the "CourseInfo.aspx" and I works. This is same to the solution you presented.
    Thank you.


  • Sign In to post your comments