ASP.NET Web Application - 5,000 lines of code on 1 page - acceptable?

I am creating a web application based on ASP.NET 2.0 (in C #), which is primarily intended for intranet use, that is, for use within the organization’s local network.

Regarding the user interface, there are two approaches that I need to choose.

  • Create a one-page web application with many ASP.NET AJAX 1.0 controls (modal pop-ups) to show categorized content that would otherwise go to a separate .aspx page.

  • Use the traditional approach and create multiple pages.

The 1 page user interface looks and looks very cool. However, I have doubts about its scalability.

I agreed that the application is intended for use on a local network, but since it is a web application, it can potentially be used over the Internet if the client wants to.

Thanks to the 1-page user interface, there are already about 2,600 lines of code on one .aspx page and another 1,600 lines of code in the code (.aspx.cs)

This will grow - no more - 10,000 lines of code (10,000 in .aspx and 10,000 in .aspx.cs). Therefore, I need to know - how much is too much for an ASP.NET page - is there 2600 + 1600 lines of code to enter the Intranet and Internet access? What about 10,000 lines of code? What is a bottle neck? Is this one-page approach acceptable or do I need to return to the traditional multi-page approach?

+3
11

, , , , . (ASP.NET) , 5k 10k, . , , . , .aspx 5k 5k ( ), , - . , . , # .

: Microsoft Build Engine: MSBuild Team Foundation Build

+4

, . , . 10k + .

+3

-, ascx ascx aspx

+2

( , DAO ), , .

... .

, ... " " , WML?

+1

, , . , , - . " ". , ""

+1

, .

. -, BLL. DAL.

, DAL, BLL , .

+1

, . , . , , , , . , , , .

, , , . , .

0

, ViewState. , ViewState ( ascx ), " " .

0

10k ( ), ? , - :)

0

: WAY FAR "OK". , ...

UserControls. , UserControls .

0

I have several pages with 2K lines on .aspx and 10,000+ in the code behind the file. I have many functions that are not used anywhere on the site and rely on some viewing information. In my opinion, in this situation too, I think that this is a performance increase, and not a request to the server to search for functions on another page, etc. Sometimes I think that you just need to do what you need, and that is what it is. Just try to make your code as efficient as possible.

0
source

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


All Articles