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#
  – 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
• Web Fundamentals
  – HTTP Transactions
  – Static & Dynamic Web Pages
  – Role Web Server

• Beginning ASP.NET MVC
  –   Overview of MVC
  –   Exploring MVC (File -> New Project)
  –   ASP.NET Intrinsic objects
  –   Demo Site
HTTP Transactions
• HTTP Request & Response
  – The communication mechanism by which Web
    browsers talk to Web sites
  – As a connection protocol, HTTP is built around
    several basic commands
  – GET, HEAD, POST
  – HTTP is Stateless Protocol
HTTP GET
              http://www.abc.com



Web Browser                          Web Site
  (Client)
                                     (Server)
              Response be rendered
               HTML to
               by browser
HTTP Transactions
• Sample GET Request

  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 Transactions
• Sample Response
Static vs. Dynamic Pages
• Static Pages
   – The earliest web sites were built primarily using static HTML pages.
   – HTML eventually evolved to be capable of much more

• Dynamic Web Pages
   – The user can make requests (often through a form) for data contained
     in a database on the server that will be assembled on the fly

• What's the difference?
   – Static pages are those that send exactly the same response to every
     request
   – Dynamic pages can customize the response on the server to offer
     personalization based on cookies and information it can get from the
     visitor.
Role of Web Server
• Role of Web Server
  – A program on server that monitors port 80 for
    incoming HTTP Requests

  – On the Microsoft platform, IIS is the watchdog
    intercepting HTTP requests from port 80—the
    normal inbound port for HTTP requests
HTTP GET
              http://www.abc.com       IIS
                                      (Web
                                     Server)
Web Browser
  (Client)

              Response be rendered
               HTML to                Web Site
               by browser
                                      (Server)
Beginning 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 three different 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




          POST

                               new




                                                  Invoke
                         Invoke action            method


                                              Lookup view




                                                  Render (viewData)


          HTML
Exploring ASP.NET MVC
• Demo: File -> New Project
DEMO
Web Development
           using
 Visual Studio 2012 &
     ASP.NET MVC

                              Adil Ahmed Mughal


Thank YOU for your time and
        attention!

More Related Content

PPTX
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
PPTX
Interactive Web Design 5 - Week 2 - Introduction
PPTX
Module 3 - Intro to Bootstrap
PPTX
Module 5 - WCM system comparison
PPTX
Building WordPress sites with AngularJS and the RESTful plugin JSON API @ Dev...
PPTX
Building WordPress sites with AngularJS and the RESTful plugin JSON API
PPTX
Advanced Wordpress
PDF
Best Practices for Building Sites in dotCMS
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Interactive Web Design 5 - Week 2 - Introduction
Module 3 - Intro to Bootstrap
Module 5 - WCM system comparison
Building WordPress sites with AngularJS and the RESTful plugin JSON API @ Dev...
Building WordPress sites with AngularJS and the RESTful plugin JSON API
Advanced Wordpress
Best Practices for Building Sites in dotCMS

What's hot (20)

PPTX
Introduction to maya
PPTX
An Introduction to Creating Websites and Blogs with WordPress
PPT
EPUB for Website Producers
PPTX
WebNetConf 2012 - Single Page Apps
PPT
Wywiwyg and Drupal
PPTX
Equity WordPress framework with Chad and Dave
PPTX
A11y Conference Talk: Building an Accessible WordPress Theme
PDF
WordPress as a CMS - Case Study of an Organizational Intranet
PPTX
SoCal Code Camp 2011 - ASP.NET 4.5
PPTX
WordPress Themes and Plugins
PPTX
Frontender in-2016
PPTX
Castro Chapter 2
PDF
Making Multisite Work for You
PDF
My Site is slow - Drupal Camp London 2013
PPTX
WCBos13 intermediate workshop
PPTX
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
PDF
WordPress Code Architecture
PDF
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
Introduction to maya
An Introduction to Creating Websites and Blogs with WordPress
EPUB for Website Producers
WebNetConf 2012 - Single Page Apps
Wywiwyg and Drupal
Equity WordPress framework with Chad and Dave
A11y Conference Talk: Building an Accessible WordPress Theme
WordPress as a CMS - Case Study of an Organizational Intranet
SoCal Code Camp 2011 - ASP.NET 4.5
WordPress Themes and Plugins
Frontender in-2016
Castro Chapter 2
Making Multisite Work for You
My Site is slow - Drupal Camp London 2013
WCBos13 intermediate workshop
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordPress Code Architecture
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
Ad

Similar to Web development using ASP.NET MVC (20)

PDF
Web Development using ASP.NET MVC at HEC
PPT
DevNext - Web Programming Concepts Using Asp Net
PPTX
Intro to .NET for Government Developers
PPSX
Introduction to ASP.NET
PPTX
Web Database
PPTX
Microsoft Web Technology Stack
PDF
Introduction to the World Wide Web
PPTX
Servlet & jsp
PDF
C# Advanced L09-HTML5+ASP
PPT
PPT
Ch-1_.ppt
PPTX
Speed = $$$
PPTX
Introduction to Web Architecture
PDF
Web Landscape - updated in Jan 2016
PPTX
ASP.NET Presentation
PPT
Develop a Quick and Dirty Web interface to your database: for the DBA and oth...
PPT
Web engineering 2(lect 2)
PPTX
Introducing asp
PPTX
INTERNET PART1.pptx
Web Development using ASP.NET MVC at HEC
DevNext - Web Programming Concepts Using Asp Net
Intro to .NET for Government Developers
Introduction to ASP.NET
Web Database
Microsoft Web Technology Stack
Introduction to the World Wide Web
Servlet & jsp
C# Advanced L09-HTML5+ASP
Ch-1_.ppt
Speed = $$$
Introduction to Web Architecture
Web Landscape - updated in Jan 2016
ASP.NET Presentation
Develop a Quick and Dirty Web interface to your database: for the DBA and oth...
Web engineering 2(lect 2)
Introducing asp
INTERNET PART1.pptx
Ad

More from Adil Mughal (10)

PDF
Write cleaner, maintainable, and testable code in Android with MVVM
PDF
Code Sharing Between Windows Phone/Store Apps
PDF
Community Contribution Experience
PDF
Quality Assurance in SDLC
PDF
Refactoring to SOLID Code
PPT
2 Day - WPF Training by Adil Mughal
PPTX
What's New in Visual Studio 2010
PPTX
Practical Enterprise Application Development
PPT
DevNext - How we build applications in Industry
PPT
Windows 7 For Geeks
Write cleaner, maintainable, and testable code in Android with MVVM
Code Sharing Between Windows Phone/Store Apps
Community Contribution Experience
Quality Assurance in SDLC
Refactoring to SOLID Code
2 Day - WPF Training by Adil Mughal
What's New in Visual Studio 2010
Practical Enterprise Application Development
DevNext - How we build applications in Industry
Windows 7 For Geeks

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Approach and Philosophy of On baking technology
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Electronic commerce courselecture one. Pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Cloud computing and distributed systems.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation_ Review paper, used for researhc scholars
Diabetes mellitus diagnosis method based random forest with bat algorithm
Approach and Philosophy of On baking technology
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Review of recent advances in non-invasive hemoglobin estimation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Dropbox Q2 2025 Financial Results & Investor Presentation
Electronic commerce courselecture one. Pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Big Data Technologies - Introduction.pptx
Cloud computing and distributed systems.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Modernizing your data center with Dell and AMD
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Building Integrated photovoltaic BIPV_UPV.pdf

Web development using ASP.NET MVC

  • 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# – 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 • Web Fundamentals – HTTP Transactions – Static & Dynamic Web Pages – Role Web Server • Beginning ASP.NET MVC – Overview of MVC – Exploring MVC (File -> New Project) – ASP.NET Intrinsic objects – Demo Site
  • 5. HTTP Transactions • HTTP Request & Response – The communication mechanism by which Web browsers talk to Web sites – As a connection protocol, HTTP is built around several basic commands – GET, HEAD, POST – HTTP is Stateless Protocol
  • 6. HTTP GET http://www.abc.com Web Browser Web Site (Client) (Server) Response be rendered HTML to by browser
  • 7. HTTP Transactions • Sample GET Request 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
  • 9. Static vs. Dynamic Pages • Static Pages – The earliest web sites were built primarily using static HTML pages. – HTML eventually evolved to be capable of much more • Dynamic Web Pages – The user can make requests (often through a form) for data contained in a database on the server that will be assembled on the fly • What's the difference? – Static pages are those that send exactly the same response to every request – Dynamic pages can customize the response on the server to offer personalization based on cookies and information it can get from the visitor.
  • 10. Role of Web Server • Role of Web Server – A program on server that monitors port 80 for incoming HTTP Requests – On the Microsoft platform, IIS is the watchdog intercepting HTTP requests from port 80—the normal inbound port for HTTP requests
  • 11. HTTP GET http://www.abc.com IIS (Web Server) Web Browser (Client) Response be rendered HTML to Web Site by browser (Server)
  • 12. Beginning 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 three different development models: – Web Pages, MVC (Model View Controller), and Web Forms.
  • 14. Life Cycle of MVC Request Browser URL Routing Controller Model View POST new Invoke Invoke action method Lookup view Render (viewData) HTML
  • 15. Exploring ASP.NET MVC • Demo: File -> New Project
  • 16. DEMO
  • 17. Web Development using Visual Studio 2012 & ASP.NET MVC Adil Ahmed Mughal Thank YOU for your time and attention!