How to organize an ASP.NET project

I am a PHP developer moving into an ASP.NET environment. I would like to know how best to organize different types of files.

Now in my project I have the following:

  • 3 main files
  • 5 user controls
  • 1 Base Page Class
  • Multiple Web Forms

Web forms are organized into directories based on the structure of sites. But will I just leave all these things at the root level?

The base class can go into the app_code folder, but where do the wizards and user controls go?

+3
source share
3 answers

/MasterPages/ , /Users/ "" , /Users/Controls/ .

- :

../ root
/Admin/
/Admin/Controls/
/JavaScript/ (or a /Includes/)
/MasterPages/
/Users/
/Users/Controls/

.

+1

, PHP. *, ASP.NET MVP.

*

0

. , . , , . web.config "Controls" "Pages", .                 
  

For this reason, you don’t need to place the “Register” tag on every page where you use custom controls.

0
source

Source: https://habr.com/ru/post/1714437/


All Articles