Organizing My Site

Discussion in 'Visual Studio' started by DRAYKKO, Jan 1, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi all:

    I'm trying to figure out how to create folders on my domain (discountASP.NET), to keep all the websites I create in VS2005 organized. For example if I have a project called MyProject with several .aspx pages, I'd like to have a folder called MyProject, and save all my pages and other files (like app_code or app_data) in it. Is there a way to do this? If so, how?



    Note:

    I tried creating a folder from within my project and then uploading just the folder, but when I try to access the pages from my website, I keep getting an error, that the master page does not exist (even though it's there). I thought it might be the path (it's saved as '~/MyMasterPage', for example, and I tried changing it to 'MyMasterPage', but that didn't fix the problem). This only happens when I use VS2005, but if I try this same technique with Visual Web Developer 2008 Express, it's able to see my master page. The only think I could think of, was that in my VWD 2008 project, I had a web.config file, and in the VS2005 project I didn't. Could that be the solution?


    Draykko
     
  2. Thanks Mark.
    I'll check the site you posted.

    Draykko--
     
  3. That's a lot of questions which seem to show you may be learning. [​IMG]

    You should indeed have a web.config in your application root.
    In your DASP Control Panel you can create applications for folders on your site.
    The root folder is an application by default.
    When you use this directive "~" your remote code will point to the application root.
    This can cause you some differences when you test locally if you're running ASP.NET from VS but not IIS.
    Your application root will be the Web Site root when you open your solution.

    You may have seen already that VS 2008 has new support for Nested Mater Pages.

    I'm guessing most of your questions can be answered here:
    http://www.asp.net/get-started/
    Salute,
    Mark
     
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