SlideShare a Scribd company logo
1 of 26
MVC
Shyam N. Chawda
7874391191 www.shyamsir.com
ASP.NET
 Web Form
 Web Pages
 MVC
7874391191 www.shyamsir.com
ASP.NET - 1.0 - 4.0
 Drag 'n drop GUI Programming
 Data Controls -
GridView,FormView,DetailsView,ListView,DataPager
 Data Access Controls –
SqlDataSource,ObjectDataSource
 Login control , Navigation control
 Masterpages
 Themes-Skins
 Code behind
 LINQ
7874391191 www.shyamsir.com
ASP.NET
 When we generally talk about ASP.NET applications
built on a tiered architecture they are divided in four
parts:
 UI (ASPX pages)
 Code-behind (ASPX.CS pages)
 Middle tier (.NET classes)
 Data layer.
7874391191 www.shyamsir.com
Problems with ASP.NET
 Unit Testing
 Separation of UI and Code behind
 Life Cycle
7874391191 www.shyamsir.com
Good For
 It’s good for small scale applications with limited
team size.
 Less knowledge HTML, CSS , JavaScript.
 ASP.NET WebForms is Rapid Application
Development approach.
7874391191 www.shyamsir.com
Today’s IT Company
We are professional software developer and we build complex, large scale
websites with a team of developers
7874391191 www.shyamsir.com
MVC
 Model View Controller
 Model–view–controller (MVC) is a software
pattern for implementing user interfaces.
7874391191 www.shyamsir.com
MVC
7874391191 www.shyamsir.com
MVC
 Model
 Implement the logic of the application
 Classes that represent the data of the application
and that use validation logic to enforce business
rules for that data.
 Notifies its associated views and controllers when
there has been a change in its state.
 This notification allows the views to produce updated
output, and the controllers to change the available
set of commands.
7874391191 www.shyamsir.com
MVC
 Views
 Display data and present the UI
 Template files that your application uses to
dynamically generate HTML responses.
 Requests information from the model that it needs
for generating an output representation to the user
7874391191 www.shyamsir.com
MVC
 Controllers
 Handle user interactions, work with models and
select next view to display
 A controller can send commands to the model to
update the model's state.
 It can also send commands to its associated view to
change the view's presentation of the model
7874391191 www.shyamsir.com
Types of Project Template
 Empty: -
 The Empty template created the minimum
references and resources required.
 Basic: -
 In MVC 4 and. Basic project is much closer
structurally to Empty project.
 It includes Content and Scripts as well as few more
references
7874391191 www.shyamsir.com
Types of Project Template
 Internet Application :-
 Adds two controllers( Account controller and Home
controller) to the Basic template with implemented
actions and views.
 Its a template used usually to start a normal web
project in action.
7874391191 www.shyamsir.com
Types of Project Template
 Intranet Application :-
 It’s the Internet Application except for Membership
management.
 Windows authentication method.
 Mobile Application :-
 Mobile website programming is Template has
everything that Internet Application template has,
however it is using jQuery.mobile instead.
 Forms Authentication
7874391191 www.shyamsir.com
Types of Project Template
 Web API Application :-
 It allows you to expose your data and service to the
web directly over Http.
 This template includes everything from Basic
Template expect Account controller and membership
functionality.
7874391191 www.shyamsir.com
View Engine
 The view engine is responsible for creating HTML from
your views.
 Like ASP.NET .aspx <% %>
 Views are usually some kind of mix-up of HTML and a
programming language.
 Razor
 ASPX
 Spark
 NHaml
 NDjango
 Brail
 Hasic
7874391191 www.shyamsir.com
Razor - View Engine
 MVC 3.
 It’s not a programming language but uses C# syntax
for embedding code in a page without the ASP.NET
delimiters: <%= %>.
 Razor using an @
 Cshtml , vbhtml
7874391191 www.shyamsir.com
Razor – Syntax Rule
 Razor code blocks are enclosed in @{ ... }
 Inline expressions (variables and functions) start with
@
 Code statements end with semicolon
 Variables are declared with the var keyword
 Strings are enclosed with quotation marks
7874391191 www.shyamsir.com
Razor – Coding Syntax
7874391191 www.shyamsir.com
Razor – Coding Syntax
7874391191 www.shyamsir.com
Razor – Coding Syntax
7874391191 www.shyamsir.com
Razor – Coding Syntax
7874391191 www.shyamsir.com
Razor – Coding Syntax
7874391191 www.shyamsir.com
Razor – Coding Syntax
7874391191 www.shyamsir.com
Folders
 Application information
Properties
References
 Application folders
App_Data Folder
Content Folder
Controllers Folder
Models Folder
Scripts Folder
Views Folder
 Configuration files
Global.asax
packages.config
Web.config
7874391191 www.shyamsir.com

More Related Content

What's hot

Introduction to mvc architecture
Introduction to mvc architectureIntroduction to mvc architecture
Introduction to mvc architectureravindraquicsolv
 
ASP.NET MVC.
ASP.NET MVC.ASP.NET MVC.
ASP.NET MVC.Ni
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentationBhavin Shah
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC PresentationVolkan Uzun
 
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9AHM Pervej Kabir
 
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...SoftServe
 
An overview of microsoft mvc dot net
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot netneha sharma
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCBarry Gervin
 
Asp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantNitin Sawant
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training sessionHrichi Mohamed
 
Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013Thomas Robbins
 
ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines  ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines Dev Raj Gautam
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVCSunpawet Somsin
 

What's hot (20)

Introduction to mvc architecture
Introduction to mvc architectureIntroduction to mvc architecture
Introduction to mvc architecture
 
ASP.NET MVC.
ASP.NET MVC.ASP.NET MVC.
ASP.NET MVC.
 
MSDN - ASP.NET MVC
MSDN - ASP.NET MVCMSDN - ASP.NET MVC
MSDN - ASP.NET MVC
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentation
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
What is MVC?
What is MVC?What is MVC?
What is MVC?
 
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
 
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
 
An overview of microsoft mvc dot net
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot net
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
 
ASP.NET MVC 3
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
 
Asp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin Sawant
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training session
 
Model View Controller (MVC)
Model View Controller (MVC)Model View Controller (MVC)
Model View Controller (MVC)
 
Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013
 
ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines  ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
MVC architecture
MVC architectureMVC architecture
MVC architecture
 
ASP.NET MVC for Begineers
ASP.NET MVC for BegineersASP.NET MVC for Begineers
ASP.NET MVC for Begineers
 
Why MVC?
Why MVC?Why MVC?
Why MVC?
 

Viewers also liked

Shop wears online for kids
Shop wears online for kidsShop wears online for kids
Shop wears online for kidsBenjohnson247
 
Fitness business day workshop 19 Marzo - Terni
Fitness business day workshop 19 Marzo - TerniFitness business day workshop 19 Marzo - Terni
Fitness business day workshop 19 Marzo - TerniSales Management Network
 
Bmihms subject -outlines_ihm03.10.14
Bmihms subject -outlines_ihm03.10.14Bmihms subject -outlines_ihm03.10.14
Bmihms subject -outlines_ihm03.10.14Ann Sheep
 
Energia eva georgana 4rtA
Energia eva georgana 4rtAEnergia eva georgana 4rtA
Energia eva georgana 4rtAevaelfk
 
Module thong ke truy cap va footer
Module thong ke truy cap va footerModule thong ke truy cap va footer
Module thong ke truy cap va footerTuan Huy
 
Designing & Managing Product
Designing & Managing ProductDesigning & Managing Product
Designing & Managing Productshilmihnisa Nisa
 
Transformation themes are ok with laptop hardware?
Transformation themes are ok with laptop hardware?Transformation themes are ok with laptop hardware?
Transformation themes are ok with laptop hardware?gentlekudos302
 
Día de la paz2014-15
Día de la paz2014-15Día de la paz2014-15
Día de la paz2014-151ciclo2013-14
 
南台經驗分享第二次會20140323
南台經驗分享第二次會20140323南台經驗分享第二次會20140323
南台經驗分享第二次會20140323Richard Lim
 
Vikings Helping Vikings Service Learning Project
Vikings Helping Vikings Service Learning ProjectVikings Helping Vikings Service Learning Project
Vikings Helping Vikings Service Learning Projectchellsieheil
 
Conceptos de proyecto
Conceptos de proyectoConceptos de proyecto
Conceptos de proyectomoisesmo19
 
Consumerdurable august2013-130926012304-phpapp02
Consumerdurable august2013-130926012304-phpapp02Consumerdurable august2013-130926012304-phpapp02
Consumerdurable august2013-130926012304-phpapp02Supa Buoy
 
Media presantation
Media presantationMedia presantation
Media presantationZaiddaman
 

Viewers also liked (15)

Shop wears online for kids
Shop wears online for kidsShop wears online for kids
Shop wears online for kids
 
Fitness business day workshop 19 Marzo - Terni
Fitness business day workshop 19 Marzo - TerniFitness business day workshop 19 Marzo - Terni
Fitness business day workshop 19 Marzo - Terni
 
Bmihms subject -outlines_ihm03.10.14
Bmihms subject -outlines_ihm03.10.14Bmihms subject -outlines_ihm03.10.14
Bmihms subject -outlines_ihm03.10.14
 
Energia eva georgana 4rtA
Energia eva georgana 4rtAEnergia eva georgana 4rtA
Energia eva georgana 4rtA
 
Module thong ke truy cap va footer
Module thong ke truy cap va footerModule thong ke truy cap va footer
Module thong ke truy cap va footer
 
Designing & Managing Product
Designing & Managing ProductDesigning & Managing Product
Designing & Managing Product
 
Transformation themes are ok with laptop hardware?
Transformation themes are ok with laptop hardware?Transformation themes are ok with laptop hardware?
Transformation themes are ok with laptop hardware?
 
Día de la paz2014-15
Día de la paz2014-15Día de la paz2014-15
Día de la paz2014-15
 
83 143-1-sm
83 143-1-sm83 143-1-sm
83 143-1-sm
 
南台經驗分享第二次會20140323
南台經驗分享第二次會20140323南台經驗分享第二次會20140323
南台經驗分享第二次會20140323
 
Vikings Helping Vikings Service Learning Project
Vikings Helping Vikings Service Learning ProjectVikings Helping Vikings Service Learning Project
Vikings Helping Vikings Service Learning Project
 
Viral videos
Viral videosViral videos
Viral videos
 
Conceptos de proyecto
Conceptos de proyectoConceptos de proyecto
Conceptos de proyecto
 
Consumerdurable august2013-130926012304-phpapp02
Consumerdurable august2013-130926012304-phpapp02Consumerdurable august2013-130926012304-phpapp02
Consumerdurable august2013-130926012304-phpapp02
 
Media presantation
Media presantationMedia presantation
Media presantation
 

Similar to MVC First Basic

Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handsonPrashant Kumar
 
Head first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttHead first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttLanvige Jiang
 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To MvcVolkan Uzun
 
Struts(mrsurwar) ppt
Struts(mrsurwar) pptStruts(mrsurwar) ppt
Struts(mrsurwar) pptmrsurwar
 
ASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemSaBin SaleEm
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.netConcetto Labs
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC IntroductionSumit Chhabra
 
ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC eldorina
 
Simple mvc4 prepared by gigin krishnan
Simple mvc4 prepared by gigin krishnanSimple mvc4 prepared by gigin krishnan
Simple mvc4 prepared by gigin krishnanGigin Krishnan
 
ASP.NET MVC Fundamental
ASP.NET MVC FundamentalASP.NET MVC Fundamental
ASP.NET MVC Fundamentalldcphuc
 
Lecture 05 - Creating a website with Razor Pages.pdf
Lecture 05 - Creating a website with Razor Pages.pdfLecture 05 - Creating a website with Razor Pages.pdf
Lecture 05 - Creating a website with Razor Pages.pdfLê Thưởng
 

Similar to MVC First Basic (20)

Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
 
ASp.net Mvc 5
ASp.net Mvc 5ASp.net Mvc 5
ASp.net Mvc 5
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Asp.Net MVC Intro
Asp.Net MVC IntroAsp.Net MVC Intro
Asp.Net MVC Intro
 
Head first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttHead first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rtt
 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To Mvc
 
Struts(mrsurwar) ppt
Struts(mrsurwar) pptStruts(mrsurwar) ppt
Struts(mrsurwar) ppt
 
ASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemASP.Net | Sabin Saleem
ASP.Net | Sabin Saleem
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.net
 
Mvc
MvcMvc
Mvc
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC Introduction
 
ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
 
Mvc
MvcMvc
Mvc
 
MVC 4
MVC 4MVC 4
MVC 4
 
Asp 1a-aspnetmvc
Asp 1a-aspnetmvcAsp 1a-aspnetmvc
Asp 1a-aspnetmvc
 
Aspnetmvc 1
Aspnetmvc 1Aspnetmvc 1
Aspnetmvc 1
 
Spring Framework-II
Spring Framework-IISpring Framework-II
Spring Framework-II
 
Simple mvc4 prepared by gigin krishnan
Simple mvc4 prepared by gigin krishnanSimple mvc4 prepared by gigin krishnan
Simple mvc4 prepared by gigin krishnan
 
ASP.NET MVC Fundamental
ASP.NET MVC FundamentalASP.NET MVC Fundamental
ASP.NET MVC Fundamental
 
Lecture 05 - Creating a website with Razor Pages.pdf
Lecture 05 - Creating a website with Razor Pages.pdfLecture 05 - Creating a website with Razor Pages.pdf
Lecture 05 - Creating a website with Razor Pages.pdf
 

More from Shyam Sir

Mobile Application
Mobile ApplicationMobile Application
Mobile ApplicationShyam Sir
 
State Management in ASP.NET
State Management in ASP.NETState Management in ASP.NET
State Management in ASP.NETShyam Sir
 
Basic Concept of ASP.NET
Basic Concept of ASP.NETBasic Concept of ASP.NET
Basic Concept of ASP.NETShyam Sir
 
ASP.NET with VB.NET
 ASP.NET with VB.NET ASP.NET with VB.NET
ASP.NET with VB.NETShyam Sir
 
Master page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NETMaster page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NETShyam Sir
 
If Else .. Select Case in VB.NET
If Else .. Select Case in VB.NETIf Else .. Select Case in VB.NET
If Else .. Select Case in VB.NETShyam Sir
 
Operators , Functions and Options in VB.NET
Operators , Functions and Options in VB.NETOperators , Functions and Options in VB.NET
Operators , Functions and Options in VB.NETShyam Sir
 

More from Shyam Sir (9)

Mobile Application
Mobile ApplicationMobile Application
Mobile Application
 
Hosting
HostingHosting
Hosting
 
It new2015
It new2015It new2015
It new2015
 
State Management in ASP.NET
State Management in ASP.NETState Management in ASP.NET
State Management in ASP.NET
 
Basic Concept of ASP.NET
Basic Concept of ASP.NETBasic Concept of ASP.NET
Basic Concept of ASP.NET
 
ASP.NET with VB.NET
 ASP.NET with VB.NET ASP.NET with VB.NET
ASP.NET with VB.NET
 
Master page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NETMaster page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NET
 
If Else .. Select Case in VB.NET
If Else .. Select Case in VB.NETIf Else .. Select Case in VB.NET
If Else .. Select Case in VB.NET
 
Operators , Functions and Options in VB.NET
Operators , Functions and Options in VB.NETOperators , Functions and Options in VB.NET
Operators , Functions and Options in VB.NET
 

Recently uploaded

JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuidePixlogix Infotech
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceIES VE
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightSafe Software
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringWSO2
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....rightmanforbloodline
 

Recently uploaded (20)

JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 

MVC First Basic

  • 2. ASP.NET  Web Form  Web Pages  MVC 7874391191 www.shyamsir.com
  • 3. ASP.NET - 1.0 - 4.0  Drag 'n drop GUI Programming  Data Controls - GridView,FormView,DetailsView,ListView,DataPager  Data Access Controls – SqlDataSource,ObjectDataSource  Login control , Navigation control  Masterpages  Themes-Skins  Code behind  LINQ 7874391191 www.shyamsir.com
  • 4. ASP.NET  When we generally talk about ASP.NET applications built on a tiered architecture they are divided in four parts:  UI (ASPX pages)  Code-behind (ASPX.CS pages)  Middle tier (.NET classes)  Data layer. 7874391191 www.shyamsir.com
  • 5. Problems with ASP.NET  Unit Testing  Separation of UI and Code behind  Life Cycle 7874391191 www.shyamsir.com
  • 6. Good For  It’s good for small scale applications with limited team size.  Less knowledge HTML, CSS , JavaScript.  ASP.NET WebForms is Rapid Application Development approach. 7874391191 www.shyamsir.com
  • 7. Today’s IT Company We are professional software developer and we build complex, large scale websites with a team of developers 7874391191 www.shyamsir.com
  • 8. MVC  Model View Controller  Model–view–controller (MVC) is a software pattern for implementing user interfaces. 7874391191 www.shyamsir.com
  • 10. MVC  Model  Implement the logic of the application  Classes that represent the data of the application and that use validation logic to enforce business rules for that data.  Notifies its associated views and controllers when there has been a change in its state.  This notification allows the views to produce updated output, and the controllers to change the available set of commands. 7874391191 www.shyamsir.com
  • 11. MVC  Views  Display data and present the UI  Template files that your application uses to dynamically generate HTML responses.  Requests information from the model that it needs for generating an output representation to the user 7874391191 www.shyamsir.com
  • 12. MVC  Controllers  Handle user interactions, work with models and select next view to display  A controller can send commands to the model to update the model's state.  It can also send commands to its associated view to change the view's presentation of the model 7874391191 www.shyamsir.com
  • 13. Types of Project Template  Empty: -  The Empty template created the minimum references and resources required.  Basic: -  In MVC 4 and. Basic project is much closer structurally to Empty project.  It includes Content and Scripts as well as few more references 7874391191 www.shyamsir.com
  • 14. Types of Project Template  Internet Application :-  Adds two controllers( Account controller and Home controller) to the Basic template with implemented actions and views.  Its a template used usually to start a normal web project in action. 7874391191 www.shyamsir.com
  • 15. Types of Project Template  Intranet Application :-  It’s the Internet Application except for Membership management.  Windows authentication method.  Mobile Application :-  Mobile website programming is Template has everything that Internet Application template has, however it is using jQuery.mobile instead.  Forms Authentication 7874391191 www.shyamsir.com
  • 16. Types of Project Template  Web API Application :-  It allows you to expose your data and service to the web directly over Http.  This template includes everything from Basic Template expect Account controller and membership functionality. 7874391191 www.shyamsir.com
  • 17. View Engine  The view engine is responsible for creating HTML from your views.  Like ASP.NET .aspx <% %>  Views are usually some kind of mix-up of HTML and a programming language.  Razor  ASPX  Spark  NHaml  NDjango  Brail  Hasic 7874391191 www.shyamsir.com
  • 18. Razor - View Engine  MVC 3.  It’s not a programming language but uses C# syntax for embedding code in a page without the ASP.NET delimiters: <%= %>.  Razor using an @  Cshtml , vbhtml 7874391191 www.shyamsir.com
  • 19. Razor – Syntax Rule  Razor code blocks are enclosed in @{ ... }  Inline expressions (variables and functions) start with @  Code statements end with semicolon  Variables are declared with the var keyword  Strings are enclosed with quotation marks 7874391191 www.shyamsir.com
  • 20. Razor – Coding Syntax 7874391191 www.shyamsir.com
  • 21. Razor – Coding Syntax 7874391191 www.shyamsir.com
  • 22. Razor – Coding Syntax 7874391191 www.shyamsir.com
  • 23. Razor – Coding Syntax 7874391191 www.shyamsir.com
  • 24. Razor – Coding Syntax 7874391191 www.shyamsir.com
  • 25. Razor – Coding Syntax 7874391191 www.shyamsir.com
  • 26. Folders  Application information Properties References  Application folders App_Data Folder Content Folder Controllers Folder Models Folder Scripts Folder Views Folder  Configuration files Global.asax packages.config Web.config 7874391191 www.shyamsir.com