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

PDF
Write cleaner, maintainable, and testable code in Android with MVVM
PDF
Code Sharing Between Windows Phone/Store Apps
PDF
Android MVVM TDD
PPTX
MVVM with Kendo UI
PPTX
HTML5 and jQuery Mobile
PPTX
Introduction to jQueryMobile
PDF
PPTX
Angular 5,6,7
Write cleaner, maintainable, and testable code in Android with MVVM
Code Sharing Between Windows Phone/Store Apps
Android MVVM TDD
MVVM with Kendo UI
HTML5 and jQuery Mobile
Introduction to jQueryMobile
Angular 5,6,7

What's hot (20)

PPTX
PPTX
AngularJS – What, Why, Advantages and Disadvantages
PPTX
MVVM presentation
PPT
AngularJS – What, Why, Advantages and Disadvantages
PDF
Creating MVC Application with backbone js
PPT
Introduction To Asp.Net Mvc
PDF
AngularJS Basics - Knowledge Sharing
PPTX
How do you get your idea into the app store?
PPTX
Slideshow 4
DOCX
suma cv
PPTX
Introduction to asp.net mvc
PDF
Resume-Amar.compressed
PPTX
Introduction To Model View Presenter
PPTX
Angularjs on line training
PDF
Angular js for web development
DOCX
Angular js training institute
PDF
Backbone.js – an introduction
PPTX
Model View Presenter (MVP) In Aspnet
PPTX
Slideshow 3
DOC
bala_CV _Developer_2.3_years
AngularJS – What, Why, Advantages and Disadvantages
MVVM presentation
AngularJS – What, Why, Advantages and Disadvantages
Creating MVC Application with backbone js
Introduction To Asp.Net Mvc
AngularJS Basics - Knowledge Sharing
How do you get your idea into the app store?
Slideshow 4
suma cv
Introduction to asp.net mvc
Resume-Amar.compressed
Introduction To Model View Presenter
Angularjs on line training
Angular js for web development
Angular js training institute
Backbone.js – an introduction
Model View Presenter (MVP) In Aspnet
Slideshow 3
bala_CV _Developer_2.3_years
Ad

Viewers also liked (20)

PDF
Quality Assurance in SDLC
PPTX
Quality Assurance and Software Testing
PDF
Software Development Life Cycle (SDLC)
PPT
Test Life Cycle
PPT
Quality Assurance Vs Quality Control
PPTX
Quality control and quality assurance
PPT
Introduction To Software Quality Assurance
PDF
Top six quality assurance for website developers
PPTX
Quality Assurance in Web Applications
PPTX
What's New in Visual Studio 2010
PPT
Windows 7 For Geeks
PDF
Community Contribution Experience
PPT
DevNext - Web Programming Concepts Using Asp Net
DOCX
Business Analyst Documentation
PDF
Android Wear CodeLab - GDG Firenze
PDF
Testable Android Apps DroidCon Italy 2015
PPT
QACampus PPT (STLC)
PPTX
Quality Assurance & Quality Control
PDF
Testable Android Apps using data binding and MVVM
PPT
The Business Analyst And The Sdlc
Quality Assurance in SDLC
Quality Assurance and Software Testing
Software Development Life Cycle (SDLC)
Test Life Cycle
Quality Assurance Vs Quality Control
Quality control and quality assurance
Introduction To Software Quality Assurance
Top six quality assurance for website developers
Quality Assurance in Web Applications
What's New in Visual Studio 2010
Windows 7 For Geeks
Community Contribution Experience
DevNext - Web Programming Concepts Using Asp Net
Business Analyst Documentation
Android Wear CodeLab - GDG Firenze
Testable Android Apps DroidCon Italy 2015
QACampus PPT (STLC)
Quality Assurance & Quality Control
Testable Android Apps using data binding and MVVM
The Business Analyst And The Sdlc
Ad

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

PDF
Web development using ASP.NET MVC
PDF
C# Advanced L09-HTML5+ASP
PPTX
Asp.Net MVC3 - Basics
PPT
Develop a Quick and Dirty Web interface to your database: for the DBA and oth...
PPTX
Intro to .NET for Government Developers
PPTX
ASP.NET MVC as the next step in web development
PDF
Java Edge.2008.Web.Frameworks.Catagorized
PPTX
Aspnet mvc
PPTX
PPTX
Asp.Net Mvc
PDF
ASP.NET MVC - Whats The Big Deal
PPTX
ASP.net MVC Introduction Wikilogia (nov 2014)
PPTX
Hanselman lipton asp_connections_ams304_mvc
PPTX
Asp.net With mvc handson
PPTX
MVC 6 Introduction
PPTX
Three Other Web Frameworks. All .NET. All OSS. One Hour. Go
PDF
Introduction to the World Wide Web
PPTX
ASP.NET Presentation
PDF
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET...
PPSX
Asp.net mvc
Web development using ASP.NET MVC
C# Advanced L09-HTML5+ASP
Asp.Net MVC3 - Basics
Develop a Quick and Dirty Web interface to your database: for the DBA and oth...
Intro to .NET for Government Developers
ASP.NET MVC as the next step in web development
Java Edge.2008.Web.Frameworks.Catagorized
Aspnet mvc
Asp.Net Mvc
ASP.NET MVC - Whats The Big Deal
ASP.net MVC Introduction Wikilogia (nov 2014)
Hanselman lipton asp_connections_ams304_mvc
Asp.net With mvc handson
MVC 6 Introduction
Three Other Web Frameworks. All .NET. All OSS. One Hour. Go
Introduction to the World Wide Web
ASP.NET Presentation
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET...
Asp.net mvc

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Approach and Philosophy of On baking technology
PDF
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Understanding_Digital_Forensics_Presentation.pptx
Chapter 3 Spatial Domain Image Processing.pdf
cuic standard and advanced reporting.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Review of recent advances in non-invasive hemoglobin estimation
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Approach and Philosophy of On baking technology
Empathic Computing: Creating Shared Understanding

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!