{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
Test: Understanding ASP.NET Directory Structure

3. You have a pure code file (.cs or .vb) in your ASP.NET application. Which directory should hold them?



Results
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: App_Code directory
Explanation
App_Code Directory

Your entire website is not just a bunch of .aspx files for the user interface and .aspx.cs or .aspx.vb files for the code behind those pages. If that’s the case, you will be repeating a whole bunch of code over and over again. For example, your data access layer (the code that deals with database) could be abstracted into a set of ORM (Object-Relational Mapping) classes. There could be a whole bunch of static methods inside a utility class – these methods can be conveniently accessed from all the pages. You want to put the classes that don’t have user interface attached to them in this directory.
Take the Test
Take the complete test on this topic. You will be able to review answers to questions and get a test score.

Take the Test


Question 3 of 5


Test is Based on this Article
Various subdirectories are used in a typical ASP.NET program. This is a test on the basics of various subdirectories.
icon-aspnet-directory-special.jpg
This article talks about the directory structure you see when you work with (and grow) an ASP.NET web site. Visual Studio creates some directories automatically for you and these directories have some special meaning (that means, only a certain types of files can go into these directories).

More Articles With Similar Tags
icon-aspnet-directory-special.jpg
This article talks about the directory structure you see when you work with (and grow) an ASP.NET web site. Visual Studio creates some directories automatically for you and these directories have some special meaning (that means, only a certain types of files can go into these directories).
Lots of different file extensions are used in ASP.NET projects. Test your knowledge on the basics these file types.
icon-aspnet-files-config.jpg
Recognizing the file types helps understand quickly the architecture of a web site that you didn’t develop (also helps with the files you didn’t explicitly create but the development environment generated). This article talks about the common and not-so common types of files you see as you develop with Visual Studio / ASP.NET.
                                                                                                                                                                                                             
About  Contact  Privacy Policy  Site Map