asp net mvc series for beginers part 2
TRANSCRIPT
Gaurav Kumar Aroratwitter - @g_arora
A technology enthusiast, having more than 13yrs of experience in the industry. An author of CSharpCorner.
ASP.Net MVC series for beginers-Part 2
Agenda of the day
01 Revisiting Previous Session 05 Looking into advanced Model concepts
02 Getting started with a simple app 06 Learn with a demo
03 Defining Models 07 What comes next?
04 Lets create a Model 08 Closing notes
Revisiting Previous Session
Request/Response in an ASP.NET applicationHigh level overview
Request processingHigh level overview – how request processed
Pictorial representation of Models, Views and ControllersHigh level overview of MVC
Model
Getting started with a simple app - Demo
Lets create a Model
What is a Model?MVC model is typically a class
Both Controller and View can access Model
A Model can be used to pass data from Controller to view
DemoGetting started by adding a Model
Defining Models
Creating a Model?Adding Properties
Adding attributes to Properties
A Model can be used to pass data from Controller to view
Attributes at a glanceMain available attributes
Attributes to check DataTypes
Attributes to Display
Attributes for validationRequiredLengthComparisonRegularExpression
Looking into advanced Model concepts
Client side vs. Server side validations
Server side
ModelState.IsValid
Client side
JQuery validation
Models are awesomeCan create automatic UI
DemoRunning demo app
What comes next
Q & AFew moments for handling queries
Closing notes