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)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
Advanced Soft Computing BINUS July 2025.pdf
Sensors and Actuators in IoT Systems using pdf
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
Advanced methodologies resolving dimensionality complications for autism neur...
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx
Understanding_Digital_Forensics_Presentation.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MYSQL Presentation for SQL database connectivity
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

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: [email protected] @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!