Asp.net: is it possible to split large ASP.NET pages into parts?

Is it possible to split large ASP.NET pages into chunks? JSP has jsp: include . Is there any equivalent in ASP.NET

I'm not interested in reusing parts. I just want to organize HTML / ASP code.

Are users and homepage controls used for this?

+3
source share
5 answers
<!--#include file="inc_footer.aspx"-->
+2
source

the MasterPage model and UserControls are two for solving this problem.

+9
source

ASP.net, , .

- Javascript, , , ClientID, . , ASP.NET , . .

+2

If you're talking about individual pages (unlike custom controls that are more designed for multi-page reuse than anything else), you can also use Partial classes .

AFAIK in ASP.NET 2.0 and later ASPX pages are already Partial Classes by default (with all control declarations in the designer.aspx file).

0
source

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


All Articles