Is there a way to place aspx files in a class library in Visual Studio 2008 .NET 3.5?

I have many pages on my site, I am trying to come up with a good way to divide them into areas that are a bit isolated, than just simple directories in my basic web project. Is there a way to host my web forms in a separate class library? If so, how is this done?

Thanks in advance.

+3
source share
5 answers

At first I thought, I don’t think it’s possible, because ASPX is not precompiled.

, Page, DLL . , , , ( ).

+3

: ?

, " " , , , .

, , - , , , .

.

, , , , , . N-Tier aproach ASP.NET MVC ?

?

+3
+3

, , ASP.NET, FindControl.

. - ASP.NET - ASP.NET. ASP.NET 1.1, .

ASP.NET - Visual Studio 2008 http://www.robpaveza.net/pub/aspnet-web-app.png

, , , , , DLL.

-, ASP.NET . , , DLL, ; , , ( , ASP.my_homepage_aspx), , , .

+2

, , , aspx . Build Events, -

if exist "$(TargetDir)WebForm1.aspx" move /Y "$(TargetDir)WebForm1.aspx" 
"$(ProjectDir)WebForm1.aspx"
0

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


All Articles