Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:48:47+00:00 2026-06-13T20:48:47+00:00

I am doing a small audit of a fairly robust ASP app and CMS

  • 0

I am doing a small audit of a fairly robust ASP app and CMS for a client (does a good bit more than a regular CMS) and started looking into the code. (edit: This is for a quick overview prior to engaging a full fledge ASP shop.)

I am coming from a background mainly in PHP, Node.js, and Ruby but when I look at the layout of the directories and files it looks horrible. It reminds me of old PHP 4 apps with files all over the place.

My question is, is this still good coding practice in ASP? I expected to find a much cleaner/easier to understand structure with a more custom app like this. Much like the Rails/Zend/etc of the other languages. Here is a screenshot of a few of the files from the webroot.

Screenshot of directory layout

A side question would be, are there better ways to organize files in ASP? I have not coded with ASP in 6-8 years, and it was still not very much I used it for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:48:48+00:00Added an answer on June 13, 2026 at 8:48 pm

    This isn’t ASP, it’s ASP.NET; I also note it’s WebForms, not MVC, which has very different layout.

    Anyway, the directory structure is a mess, it’s horrible. Here’s what’s wrong with it:

    • Unholy mishmash between static HTML files and ASP.NET webforms files
    • Code files (e.g. contact.aspx.cs) are present on the server when the application looks to be compiled (because it has a bin directory), so they shouldn’t be there at all.
    • There is no consistency in folder and filename casing. Some are all lowercase, others are TitleCase.
    • You appear to have duplicate folders, what is the difference between “Images” and “img”?
    • What on earth is “missing” and “layouts” for?
    • Duplicate, disorganised files index.html, index1.html, etc.

    Then there are a few other concerns, but those are down to developer preference:

    • Generally, projects only have one or two MasterPage files, so it doesn’t make sense for them to be outside of the root folder. I put my *.master files directly in the root of the application.
    • Images related to a stylesheet should be placed in the same directory as the stylesheet rather than in a sibling folder (I’m assuming the images referenced by the stylesheet in the “css” folder are actually located in “img”). This is bad because it complicates the CSS file (as it has relative paths inside it) and makes your application more brittle.
    • Fonts seems to contain font files, again, referenced by your stylesheets. They should all go under a single “styles” folder.
    • Any image “content” (i.e. <img src="" /> elements), not images used in stylesheets, should be kept separate from stylesheet images, I’m assuming this why you have the confusing “img” vs “Images” folders.

    As for the correct way to do it, ASP.NET WebForms does not lead itself to tidy, well-organised applications. Because each (non-rewritten) URI corresponds directly to an *.aspx file it means the filesystem layout has to match the website layout. I’m afraid there isn’t much you can do about it unless you implement ASP.NET Routing.

    I also suggest eliminating all of your HTML files and converting them into ASPX files that make full use of UserControls and MasterPages as appropriate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing small Silverlight app which will allow users to Create orders. I
I'm doing a small app in Excel, and I have the following code when
I'm doing a small app which has TCP/IP server. I am familiar with BSD
i am doing small ftp client for recieving some big files from ftp. I
I'm doing a small app juggling with calendars and I'd love to send invitations
I am doing a small app that involves the system randomly generating objects. Here's
I'm doing small GPS project. Before I work on 32-bit laptop and I had
We are doing small database maintenance work to earn some money. A new client
While doing some small regex task I came upon this problem. I have a
I'm doing jquery small animation of fade in to form validation This is working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.