This contains about
- what is MVC?
- Why people are preferring MVC Application
- Tools and Softwares needs to create MVC Web application
- Differences between ASP.NET and ASP.NET MVC
- Technologies used to create MVC Application
2. What and why people are preferring ASP.Net MVC?
• Building Web applications using .NET Framework.
• MVC (ModelView Controller) Architecture.
• Light weight.Also it uses maximum HTML Controls and Client Side Scripting for event
handling and other purpose.
3. • Benefits
- Enables Separation of Concerns (SOC)
- Fast Development
- Easy to do TDD (Test Driven Development)
- Supports ASP.NET features like master page, data binding ,authentication and
authorization.
- Search Engine Optimization (Eg: Routing)
4. ARCHITECTURE
• MVC separates into three components (Model,View and Controller).
• Model
- Describe data and it is set of class
- Validate data
- Looks like Data Access Layer (DAL)
- Responds to store and retrieve data
- Holds an extension file as .cs,.dll
5. • Controller
- Process user request with help of Model andView and it is available in
Controller folder.
- Each controller has one or more action methods and each action creates as views.
• 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
8. TOOLS
• Visual Studio (2012 and above)
• IIS 8.0
• Microsoft SQL Server(2012 and above)
• .NET Framework (Above 4.5)
9. ASP.NET ASP.NET MVC
• Traditional Event Driven model MVC Architectural pattern
• SupportsWeb server control HTML Helpers
• File Based URLs Route based URLs
• Tightly coupled user logic window with Views and logic are kept separately
design window
• Master pages for consistent look and feels Layout for consistent look and feels
• User controls for code reusability PartialViews for code reusability