MVC patten relate using in. net core latest varsion

sachingothi25 16 views 17 slides Sep 18, 2024
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Mvc


Slide Content

ASP.NET MVC

H istory of MVC Framework This led to the introduction of the Model-View-Controller (MVC) framework, which provided a simple way for web developers to create complex applications. The MVC framework was first introduced by Trygve Reenskaug in 1979 as a way to manage interactions between users and computers and is still used today. 1. ASP.NET Web Forms Era (Pre-MVC) Introduction: 2. ASP.NET MVC Introduction (2009) ASP.NET MVC 1.0: 3. ASP.NET MVC Enhancements (2010-2013) 4. ASP.NET MVC 5 and Beyond (2013-2016) ASP.NET MVC 5. Introduction of ASP.NET Core (2016-Present) ASP.NET Core 1.0:

What and why people are preparring ASP.net MVC? building Web applications using .NET Framework. MVC (Model View Controller) Architecture. Light weight. Also it uses maximum HTML Controls and Client Side Scripting for event handling and other purpose.

• Benefits Fast Development Easy to do TDD (Test Driven Development) Supports ASP.NET features like master page, data binding ,authentication and authorization. Testability and Flexibility Integration with Existing Libraries

ARCHITECTURE MVC separates into three components (Model, View and Controller). Model Describe data and it is set of class Responds to store and retrieve data Holds an extension file as .cs,. dil

Controller Process user request with help of Model and View and it is available in Controller folder. Retrieve data from the Model (e.g., text content, images, charts) based on user input. View Used to visualize data Supports layout view, partial view Supports two types of engines: Razor Engine,, aspx Engine. Supports user interface like buttons, check boxes and radio buttons. Hold data in . cshtml ,. vbhtml

DIAGRAM User Request CONTROLLER Model Database View Response

TECHNOLOGIES C# HTML,CSS Javascript.jquery,AJAX MS SQL Server Entity Framework LINQ (Language Intermediate Query) JSON,XML

TOOLS Visual Studio (2012 and above) Microsoft SQL Server(2012 and above) NET Framework (Above 4.5)

ASP.NET ASP.NET MVC Traditional Event Driven model MVC Architectural pattern Supports Web server control HTML Helpers File Based URLs Route based URLs Tightly coupled user logic window with design window Views and logic are kept separately Master pages for consistent look and feels Layout for consistent look and feels User controls for code reusability Partial Views for code reusability

VERSIONS MVC 1.0 - First version 2009 MVC 2.0 - 2010 MVC 3.0 - 2011| MVC 4.0 - 2012 MVC 5.0 - 2013 MVC 5.2 - 2014

Steps of create new MVC project : Start Visual Studio and select Create a new project. In the Create a new project dialog, select ASP.NET Core Web App (Model-View-Controller) > Next . In the Configure your new project dialog: Enter for Project name. The Location for the project can be set to anywhere. Select Next . In the Additional information dialog: Select .NET 8.0 (Long Term Support) . Verify that Do not use top-level statements is unchecked.  Select  Create .

THANK YOU
Tags