Getting started

Discussion in 'ASP.NET / ASP.NET Core' started by SeanRhone, Dec 19, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm sure this has been covered but after looking through this forum and not seeing it thought I would ask.

    I'm new here and created a new application using VS 2003. It's on my site under a folder named "Base" when I go to my site

    www.mysite.com I get the default index.aspx put there bu DiscountASP. Question is how do I point the site to default to the index.aspx under my "Base" folder?


    Thanks alot!


    Sean
     
  2. I did this and renamed the index.aspx in the root folder but get an error. How does the server know to use the index.aspx in the root/base folder? Or how do I deploy an index/aspx to the root folder when the application is under another folder?








    Sean
     
  3. You can choose the 'Default Documents' through the DiscountASP Control Panel:

    - Log in to your account at my.discountasp.net
    - Click IIS manager on the left
    - Click the 'Default Docs' tab
    - Set the default documents the way you want them

    Basically you'll want to put 'default.aspx' as the top line in that text box. You can get rid of the rest or leave them there in case you want to have those act as default documents in other folders.
     
  4. When you set the default document, it's telling ASP.Net which files to treat as the 'default' page and in what order it should look for them. For example, if you put 'abc.html' on the top line, then that is the file you would see when you go to the root folder of your website. I believe those default documents apply to all folders and virtual directories on your site.
     
  5. Ok, either I'm not under standing what your saying or your not understanding what my issue is.

    So to recap my problem.

    1) I created a new application under \htdocs\Base with an index.aspx file
    2) The folder "Base" is set as a web application
    3) When I go to my site www.mysite.com I get the default screen that DASP put there.
    4) I went under IIS Manager --> Default Docs and set the index.aspx as first and even rename the DASP index.aspx. When
    I went to www.mysite.com I get error messages.


    Question: How do I get my web application to show when I go to www.mysite.com?



    Now, if you have answered this please forgive my ingnorance and not seeing it and maybe rephrase so that I might understand better.


    Thanks again!



    Sean
     
  6. Why do you have that subfolder called 'Base'. You don't need to go out of your way and create a web application unless you want a SECOND application on your site.

    I think what you probably want to do is move all of your files from 'Base' folder to your root web folder. Right now, to see your app you would go to:

    www.yoursite.com/Base

    And that would automatically display the index.aspx file you created. But if you don't want to have to type the 'Base' then move those files to the parent folder like I mentioned.

    Does that make sense?
     
  7. Make sense. Why then when I created my new app using VS 2003 it not let me create the app in the root and instead it puts it into the "Base"?
     
  8. I'm not sure what you mean about VS forcing you to create a web directory. Is this on your local machine? If it is, you can just deploy to the root directory of your live site and almost everything will be the same as running in a virtual directory on your local machine.

    If you're running WinXP, you can only have 1 root site (with Windows Server 2003 you can have multiple) which is why you may have to create a virtual directory for your new site on your local machine.
     
  9. Hi Mate,


    I may be on the completely wrong track, but if I want to point at another folder when the root of my site is accessed I have the following in the default.aspx file:


    <meta http-equiv="refresh" content="0;url=http://podmusiccou.web126.discountasp.net/experience/default.aspx">
    <html>




    </body>
    </html>


    Don't know if that is of help. If you create apps in another folder you can point to it without any problems........ I think.


    I'm new to this stuff.
     
  10. Remove your base directory. In vs.net go to file >> new project and select asp.net web application. Under location put http://<your_domain_name>/<-- make sure there is nothing after the / otherwise it will create this asa directory.


    Joel Thoms

    DiscountASP.NET
    http://www.DiscountASP.NET
     


  11. This is a client side redirect (meaning the browser will read this, wait 1 second, then redirect to new page).


    The best way to redirect would be a server side redirect.


    example:


    <% Response.Redirect("/Base") %>


    Joel Thoms

    DiscountASP.NET
    http://www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page