Home > 2010 Winter BTI420 > Organize your ASP.NET Web Forms web site folders and files

Organize your ASP.NET Web Forms web site folders and files

January 25, 2010 Leave a comment Go to comments

An organized web site will boost your developer productivity. You are beginning to realize that an ASP.NET Web Forms web site has many resources, and many "moving parts". Learn how to organize the web site in the best way possible.

 

Folder and file organization

Folder organization Study the example web site at the right.

It shows a suggested organization. The following explains each folder and its contents if applicable.

admin

Will be used to hold pages for web site administration. You will begin using web site security features in Week 5.

App_Code

Your own classes are stored in this folder. You will begin creating classes this week.

assets

This folder is for web site content assets. It is not to be used for user interface resources.

ui

This folder stores user interface resources. As suggested by its subfolder names, you store resources that influence the appearance of pages in your app.

You may be wondering about the "images" folder in assets and ui. What kind of images go in each folder? Well, images that are part of the content of a page – for example, a simple photo gallery – would go in the assets/images folder. In contrast, images that are used in the interface – header or footer images, navigation images, and so on – go in the ui/images folder.

What is the meaning of each folder name in ui?

  • css – for CSS source files
  • images – as described above
  • js – JavaScript programs
  • mp – ASP.NET Master Pages (which you learn about this week)
  • uc – ASP.NET User Controls (which you learn about this week)

 


Advertisements
Categories: 2010 Winter BTI420
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: