SlideShare a Scribd company logo
Web Development
               using
Visual Studio 2012 & ASP.NET MVC




     Adil Ahmed Mughal
Speaker => Adil Ahmed Mughal
Affiliations:




Contact Information:
       adil.mughal@live.com

       @adilamughal

       http://www.adilmughal.com
What to Expect Today?
• What you must already know?
  – Object Oriented Programming Language such as Java, C++, C#
  – Previous hands on .NET and Visual Studio
  – Basic familiarity with web development (HTML, CSS, JavaScript)


• What you will learn?
  – Understanding of how web works under the hood
  – A glance look at Model-View-Controller
  – Demonstration of sample build using ASP.NET MVC & Visual Studio
    2012
Agenda
1. Web Fundamentals
  – HTTP Transactions
  – Static & Dynamic Web Pages
  – Role Web Server - IIS


2. Beginning ASP.NET MVC
  –   Overview of MVC
  –   MVC Request Lifecycle
  –   Exploring Model, View, Controller (File -> New Project)
  –   Demo sample
Web Fundamentals
HTTP Transactions
   The browser generates a HTTP
            Request e.g.
  GET http://www.adilmughal.com



  HTTP Request



             HTTP Response


           The server process the request and
                sends the HTTP Response
              containing HTML/JS/CSS for
                   browser to render
HTTP Transactions



              HTTP Request



                         HTTP Response




HTTP Transactions = HTTP Request + HTTP Response
HTTP Request
• Commonly used HTTP Verbs
  GET              Retrieve
  POST             Update
  PUT              Create
  DELETE           Deletes a specified resource

  GET http://www.adilmughal.com HTTP/1.1
  Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, ... , */*
  Accept-Language: en-us
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; ... .NET CLR
  3.0.04506.30)
  Host: localhost:80
  Connection: Keep-Alive
HTTP Response
• Sample Response
Static vs. Dynamic Pages

          Static Pages                    Dynamic Pages

• Unchanging Content               • Dynamic content
• Pre-written HTML defines web     • Utilizes server side languages
  pages                              such as PHP, ASP.NET, JSP etc.
• Send exactly the same response   • May generate different HTML
  to every request                   for each request
Role of Web Server
• Role of Web Server
  – A piece of software that run on a physical or virtual
    machine, which designed to serve web content over
    the internet

  – Typically it monitors port 80 for incoming HTTP
    Requests

  – On the Microsoft platform, IIS is the watchdog
    intercepting HTTP requests
Uniform Resource Locators



 http://www.adilmughal.com/search?label=Visual%20Studio
URL Scheme     Host          Path        Query String
Intro to ASP.NET MVC
Pre-Requisite
• Microsoft Web Platform Installer is one stop shop to get
  complete ecosystem of web tools to get started
   – Server, Frameworks, Database, Tools etc.
   – Get the installer from http://www.microsoft.com/web/platform/


• Once you install Web Platform Installer, download the
  following to get started
   – Visual Studio 2012 Web Express (includes ASP.NET MVC 4)
   – Windows Azure SDK (optional, required for deployment on Azure)
Pre-Requisite: Web Platform Installer
ASP.NET MVC
• Web application development framework by
  Microsoft to easily create dynamic websites

• Built on top of CLR allowing programmer to write
  ASP.NET code using any .NET Languages (such as
  C#, VB.NET etc.)

• ASP.NET supports various development models:
  – Web Pages, MVC (Model View Controller), and Web
    Forms.
Overview of MVC
Life Cycle of MVC Request
Browser             URL Routing         Controller             Model     View




           HTTP
          Request
                                  new




                                                     Invoke
                            Invoke action            method


                                                 Lookup view




                                                     Render (viewData)


           HTML
Controllers
• Routes & Controllers
• Action
Model
• Model Binding
• Validation
Views
•   Razor Syntax
•   Html Helpers
•   Layout
•   Partial Views
DEMO
Q&A
Web Development               Adil Ahmed Mughal

           using                 adil.mughal@live.com


 Visual Studio 2012 &            @adilamughal


     ASP.NET MVC                 http://www.adilmughal.com




Thank YOU for your time and
        attention!

More Related Content

What's hot

Resume-Amar.compressed
Resume-Amar.compressedResume-Amar.compressed
Resume-Amar.compressed
Amarjeet Kumar
 
bala_CV _Developer_2.3_years
bala_CV _Developer_2.3_yearsbala_CV _Developer_2.3_years
bala_CV _Developer_2.3_years
Bala Subramanin
 

What's hot (20)

Android MVVM
Android MVVMAndroid MVVM
Android MVVM
 
AngularJS – What, Why, Advantages and Disadvantages
AngularJS – What, Why, Advantages and DisadvantagesAngularJS – What, Why, Advantages and Disadvantages
AngularJS – What, Why, Advantages and Disadvantages
 
MVVM presentation
MVVM presentationMVVM presentation
MVVM presentation
 
AngularJS – What, Why, Advantages and Disadvantages
AngularJS – What, Why, Advantages and DisadvantagesAngularJS – What, Why, Advantages and Disadvantages
AngularJS – What, Why, Advantages and Disadvantages
 
Creating MVC Application with backbone js
Creating MVC Application with backbone jsCreating MVC Application with backbone js
Creating MVC Application with backbone js
 
Introduction To Asp.Net Mvc
Introduction To Asp.Net MvcIntroduction To Asp.Net Mvc
Introduction To Asp.Net Mvc
 
AngularJS Basics - Knowledge Sharing
AngularJS Basics - Knowledge SharingAngularJS Basics - Knowledge Sharing
AngularJS Basics - Knowledge Sharing
 
How do you get your idea into the app store?
How do you get your idea into the app store?How do you get your idea into the app store?
How do you get your idea into the app store?
 
Slideshow 4
Slideshow 4Slideshow 4
Slideshow 4
 
suma cv
suma cvsuma cv
suma cv
 
Introduction to asp.net mvc
Introduction to asp.net mvcIntroduction to asp.net mvc
Introduction to asp.net mvc
 
Resume-Amar.compressed
Resume-Amar.compressedResume-Amar.compressed
Resume-Amar.compressed
 
Introduction To Model View Presenter
Introduction To Model View PresenterIntroduction To Model View Presenter
Introduction To Model View Presenter
 
Angularjs on line training
Angularjs on line trainingAngularjs on line training
Angularjs on line training
 
Angular js for web development
Angular js for web developmentAngular js for web development
Angular js for web development
 
Angular js training institute
Angular js training instituteAngular js training institute
Angular js training institute
 
Backbone.js – an introduction
Backbone.js – an introductionBackbone.js – an introduction
Backbone.js – an introduction
 
Model View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In AspnetModel View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In Aspnet
 
Slideshow 3
Slideshow 3Slideshow 3
Slideshow 3
 
bala_CV _Developer_2.3_years
bala_CV _Developer_2.3_yearsbala_CV _Developer_2.3_years
bala_CV _Developer_2.3_years
 

Viewers also liked

Quality Assurance and Software Testing
Quality Assurance and Software TestingQuality Assurance and Software Testing
Quality Assurance and Software Testing
pingkapil
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
Adil Mughal
 

Viewers also liked (20)

Quality Assurance in SDLC
Quality Assurance in SDLCQuality Assurance in SDLC
Quality Assurance in SDLC
 
Quality Assurance and Software Testing
Quality Assurance and Software TestingQuality Assurance and Software Testing
Quality Assurance and Software Testing
 
Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)
 
Test Life Cycle
Test Life CycleTest Life Cycle
Test Life Cycle
 
Quality Assurance Vs Quality Control
Quality Assurance Vs Quality ControlQuality Assurance Vs Quality Control
Quality Assurance Vs Quality Control
 
Quality control and quality assurance
Quality control and quality assuranceQuality control and quality assurance
Quality control and quality assurance
 
Introduction To Software Quality Assurance
Introduction To Software Quality AssuranceIntroduction To Software Quality Assurance
Introduction To Software Quality Assurance
 
Top six quality assurance for website developers
Top six quality assurance for website developersTop six quality assurance for website developers
Top six quality assurance for website developers
 
Quality Assurance in Web Applications
Quality Assurance in Web ApplicationsQuality Assurance in Web Applications
Quality Assurance in Web Applications
 
What's New in Visual Studio 2010
What's New in Visual Studio 2010What's New in Visual Studio 2010
What's New in Visual Studio 2010
 
Windows 7 For Geeks
Windows 7 For GeeksWindows 7 For Geeks
Windows 7 For Geeks
 
Community Contribution Experience
Community Contribution ExperienceCommunity Contribution Experience
Community Contribution Experience
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
Business Analyst Documentation
Business Analyst DocumentationBusiness Analyst Documentation
Business Analyst Documentation
 
Android Wear CodeLab - GDG Firenze
Android Wear CodeLab - GDG FirenzeAndroid Wear CodeLab - GDG Firenze
Android Wear CodeLab - GDG Firenze
 
Testable Android Apps DroidCon Italy 2015
Testable Android Apps DroidCon Italy 2015Testable Android Apps DroidCon Italy 2015
Testable Android Apps DroidCon Italy 2015
 
QACampus PPT (STLC)
QACampus PPT (STLC)QACampus PPT (STLC)
QACampus PPT (STLC)
 
Quality Assurance & Quality Control
Quality Assurance & Quality ControlQuality Assurance & Quality Control
Quality Assurance & Quality Control
 
Testable Android Apps using data binding and MVVM
Testable Android Apps using data binding and MVVMTestable Android Apps using data binding and MVVM
Testable Android Apps using data binding and MVVM
 
The Business Analyst And The Sdlc
The Business Analyst And The SdlcThe Business Analyst And The Sdlc
The Business Analyst And The Sdlc
 

Similar to Web Development using ASP.NET MVC at HEC

SoCal Code Camp 2011 - ASP.NET 4.5
SoCal Code Camp 2011 - ASP.NET 4.5SoCal Code Camp 2011 - ASP.NET 4.5
SoCal Code Camp 2011 - ASP.NET 4.5
Jon Galloway
 

Similar to Web Development using ASP.NET MVC at HEC (20)

Web development using ASP.NET MVC
Web development using ASP.NET MVC Web development using ASP.NET MVC
Web development using ASP.NET MVC
 
ASP.net MVC Introduction Wikilogia (nov 2014)
ASP.net MVC Introduction Wikilogia (nov 2014)ASP.net MVC Introduction Wikilogia (nov 2014)
ASP.net MVC Introduction Wikilogia (nov 2014)
 
06 web api
06 web api06 web api
06 web api
 
MVC 1.0 als alternative Webtechnologie
MVC 1.0 als alternative WebtechnologieMVC 1.0 als alternative Webtechnologie
MVC 1.0 als alternative Webtechnologie
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
 
ASP.NET - Building Web Application..in the right way!
ASP.NET - Building Web Application..in the right way!ASP.NET - Building Web Application..in the right way!
ASP.NET - Building Web Application..in the right way!
 
ASP.NET - Building Web Application..in the right way!
ASP.NET - Building Web Application..in the right way!ASP.NET - Building Web Application..in the right way!
ASP.NET - Building Web Application..in the right way!
 
Single Page Apps
Single Page AppsSingle Page Apps
Single Page Apps
 
Day7
Day7Day7
Day7
 
Lecture 2: Servlets
Lecture 2:  ServletsLecture 2:  Servlets
Lecture 2: Servlets
 
Asp.net mvc basic introduction
Asp.net mvc basic introductionAsp.net mvc basic introduction
Asp.net mvc basic introduction
 
C# Advanced L09-HTML5+ASP
C# Advanced L09-HTML5+ASPC# Advanced L09-HTML5+ASP
C# Advanced L09-HTML5+ASP
 
Mvc4
Mvc4Mvc4
Mvc4
 
End to-End SPA Development Using ASP.NET and AngularJS
End to-End SPA Development Using ASP.NET and AngularJSEnd to-End SPA Development Using ASP.NET and AngularJS
End to-End SPA Development Using ASP.NET and AngularJS
 
SoCal Code Camp 2011 - ASP.NET 4.5
SoCal Code Camp 2011 - ASP.NET 4.5SoCal Code Camp 2011 - ASP.NET 4.5
SoCal Code Camp 2011 - ASP.NET 4.5
 
IT2255 Web Essentials - Unit V Servlets and Database Connectivity
IT2255 Web Essentials - Unit V Servlets and Database ConnectivityIT2255 Web Essentials - Unit V Servlets and Database Connectivity
IT2255 Web Essentials - Unit V Servlets and Database Connectivity
 
Week 05 Web, App and Javascript_Brandon, S.H. Wu
Week 05 Web, App and Javascript_Brandon, S.H. WuWeek 05 Web, App and Javascript_Brandon, S.H. Wu
Week 05 Web, App and Javascript_Brandon, S.H. Wu
 
20jsp
20jsp20jsp
20jsp
 
Single page applications with backbone js
Single page applications with backbone jsSingle page applications with backbone js
Single page applications with backbone js
 
Asif
AsifAsif
Asif
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 

Web Development using ASP.NET MVC at HEC

  • 1. Web Development using Visual Studio 2012 & ASP.NET MVC Adil Ahmed Mughal
  • 2. Speaker => Adil Ahmed Mughal Affiliations: Contact Information: adil.mughal@live.com @adilamughal http://www.adilmughal.com
  • 3. What to Expect Today? • What you must already know? – Object Oriented Programming Language such as Java, C++, C# – Previous hands on .NET and Visual Studio – Basic familiarity with web development (HTML, CSS, JavaScript) • What you will learn? – Understanding of how web works under the hood – A glance look at Model-View-Controller – Demonstration of sample build using ASP.NET MVC & Visual Studio 2012
  • 4. Agenda 1. Web Fundamentals – HTTP Transactions – Static & Dynamic Web Pages – Role Web Server - IIS 2. Beginning ASP.NET MVC – Overview of MVC – MVC Request Lifecycle – Exploring Model, View, Controller (File -> New Project) – Demo sample
  • 6. HTTP Transactions The browser generates a HTTP Request e.g. GET http://www.adilmughal.com HTTP Request HTTP Response The server process the request and sends the HTTP Response containing HTML/JS/CSS for browser to render
  • 7. HTTP Transactions HTTP Request HTTP Response HTTP Transactions = HTTP Request + HTTP Response
  • 8. HTTP Request • Commonly used HTTP Verbs GET Retrieve POST Update PUT Create DELETE Deletes a specified resource GET http://www.adilmughal.com HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, ... , */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; ... .NET CLR 3.0.04506.30) Host: localhost:80 Connection: Keep-Alive
  • 10. Static vs. Dynamic Pages Static Pages Dynamic Pages • Unchanging Content • Dynamic content • Pre-written HTML defines web • Utilizes server side languages pages such as PHP, ASP.NET, JSP etc. • Send exactly the same response • May generate different HTML to every request for each request
  • 11. Role of Web Server • Role of Web Server – A piece of software that run on a physical or virtual machine, which designed to serve web content over the internet – Typically it monitors port 80 for incoming HTTP Requests – On the Microsoft platform, IIS is the watchdog intercepting HTTP requests
  • 12. Uniform Resource Locators http://www.adilmughal.com/search?label=Visual%20Studio URL Scheme Host Path Query String
  • 14. Pre-Requisite • Microsoft Web Platform Installer is one stop shop to get complete ecosystem of web tools to get started – Server, Frameworks, Database, Tools etc. – Get the installer from http://www.microsoft.com/web/platform/ • Once you install Web Platform Installer, download the following to get started – Visual Studio 2012 Web Express (includes ASP.NET MVC 4) – Windows Azure SDK (optional, required for deployment on Azure)
  • 16. ASP.NET MVC • Web application development framework by Microsoft to easily create dynamic websites • Built on top of CLR allowing programmer to write ASP.NET code using any .NET Languages (such as C#, VB.NET etc.) • ASP.NET supports various development models: – Web Pages, MVC (Model View Controller), and Web Forms.
  • 18. Life Cycle of MVC Request Browser URL Routing Controller Model View HTTP Request new Invoke Invoke action method Lookup view Render (viewData) HTML
  • 19. Controllers • Routes & Controllers • Action
  • 21. Views • Razor Syntax • Html Helpers • Layout • Partial Views
  • 22. DEMO
  • 23. Q&A
  • 24. Web Development Adil Ahmed Mughal using adil.mughal@live.com Visual Studio 2012 & @adilamughal ASP.NET MVC http://www.adilmughal.com Thank YOU for your time and attention!