Can anyone explain Architecture of the Web Apps in .Net different frameworks
Page life cycle and Structure and events
Difference of Classic ASP Vs. ASP.NET vs. MVC.NET vs. MVC.NET Core Vs. WebAps in blazers
Can anyone explain Architecture of the Web Apps in .Net different frameworks
Page life cycle and Structure and events
Difference of Classic ASP Vs. ASP.NET vs. MVC.NET vs. MVC.NET Core Vs. WebAps in blazers
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Jaish MathewsPosted Dec 10, 2024, 6:47 AM
Before delving into the differences between MVC.NET and MVC.NET Core, it is important to first understand the distinction between .NET Framework and .NET Core. These foundational differences directly influence how the two MVC versions operate.
Yes, there are differences in the page life cycle between MVC.NET (based on the .NET Framework) and MVC.NET Core (part of .NET Core). These differences arise due to architectural changes and design philosophies between the two frameworks.
Page Life Cycle Comparison
BeginRequest,AuthenticateRequest,AuthorizeRequest, etc.Startup.csand middleware for request handling.Application_Start,Session_Start, andApplication_Endare available in Global.asax for lifecycle management.Startup.csviaConfigureServicesandConfigure.Action Filters,Authorization Filters,Result Filters, andException Filtersthrough attributes.Controller.Execute, followed by action filters, model binding, and result execution.Key Differences
Middleware Over System.Web Pipeline:
System.Webpipeline with a middleware-based approach, making the life cycle more flexible and modular.No Global.asax:
Global.asax. Instead, application startup and configuration are managed inStartup.cswith methods likeConfigureServicesandConfigure.Session and State Management:
Routing:
RouteConfigto configure routes inGlobal.asax.Startup.cs.Event Model:
Summary
While both frameworks process requests and generate responses, MVC.NET Core introduces a streamlined, middleware-driven lifecycle that is more modern and modular than the traditional
System.Web-based lifecycle in MVC.NET. This leads to better performance, flexibility, and control over how requests are handled and processed.Kiran KumarPosted Dec 10, 2024, 6:32 AM
I think it is fine I get in list format you mentioned page events only in ASP.NET Web form can I get the same format for other types of apps
Classic ASP I think not event based, but others should have some pattern of event execution right can I get it
Kiran KumarPosted Dec 10, 2024, 6:21 AM
Hi Sasi
It was a good explanation
But in that I need a few clarifications
Architecture - MVC.NET Vs MVC.NET Core
MVC.NET also has same middleware that has the models right so what is the exact difference
State Management - MVC.NET Vs MVC.NET Core
You mentioned no viewstate if no state management there should be alternative state management right can you tell me what it is
Also, you mentioned overall differences
But can you find me what are the page events differences if it isn't matching each one in separate detail list of events or any diagrams I can get an idea of it
Sangeetha SPosted Dec 10, 2024, 6:13 AM
1.Structure of MVC.NET Architecture
MVC (Model-View-Controller) is a design pattern used in .NET applications to separate concerns:
2. Architecture of Web Apps in .NET Frameworks
.NET offers several frameworks for building web applications:
3. Page Lifecycle in ASP.NET Web Forms
The ASP.NET Web Forms page lifecycle involves several stages:
Comparison of Classic ASP, ASP.NET, MVC.NET, MVC.NET Core, and Blazor:
Classic ASP
ASP.NET
MVC.NET (ASP.NET MVC)
MVC.NET Core
Summary
Classic ASP: Basic, older technology.
ASP.NET: More powerful, suitable for large applications.
MVC.NET: Focuses on structure and testability.
MVC.NET Core: Modern, cross-platform, and high-performance.
Blazor: Combines C# for both client and server, great for interactive apps.
sasikala sPosted Dec 10, 2024, 6:09 AM
Difference of Classic ASP Vs ASP.NET vs MVC.NET vs MVC.NET Core Vs WebAps in blazor
Each of these technologies has its strengths and is suitable for different types of applications. Classic ASP is less common today, while ASP.NET MVC and Core are widely used for modern web applications. Blazor offers a fresh approach with C# for client-side development.