SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
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!

Contenu connexe

Tendances

WebNetConf 2012 - Single Page Apps
WebNetConf 2012 - Single Page AppsWebNetConf 2012 - Single Page Apps
WebNetConf 2012 - Single Page Apps
Pop Apps
 
WordPress as a CMS - Case Study of an Organizational Intranet
WordPress as a CMS - Case Study of an Organizational IntranetWordPress as a CMS - Case Study of an Organizational Intranet
WordPress as a CMS - Case Study of an Organizational Intranet
Tech Liminal
 
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
 
Castro Chapter 2
Castro Chapter 2Castro Chapter 2
Castro Chapter 2
Jeff Byrnes
 
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
René Kreijveld
 

Tendances (20)

Introduction to maya
Introduction to mayaIntroduction to maya
Introduction to maya
 
An Introduction to Creating Websites and Blogs with WordPress
An Introduction to Creating Websites and Blogs with WordPressAn Introduction to Creating Websites and Blogs with WordPress
An Introduction to Creating Websites and Blogs with WordPress
 
EPUB for Website Producers
EPUB for Website ProducersEPUB for Website Producers
EPUB for Website Producers
 
Wordpress 101 v2
Wordpress 101 v2Wordpress 101 v2
Wordpress 101 v2
 
WebNetConf 2012 - Single Page Apps
WebNetConf 2012 - Single Page AppsWebNetConf 2012 - Single Page Apps
WebNetConf 2012 - Single Page Apps
 
Wywiwyg and Drupal
Wywiwyg and DrupalWywiwyg and Drupal
Wywiwyg and Drupal
 
Equity WordPress framework with Chad and Dave
Equity WordPress framework with Chad and DaveEquity WordPress framework with Chad and Dave
Equity WordPress framework with Chad and Dave
 
A11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress ThemeA11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress Theme
 
WordPress as a CMS - Case Study of an Organizational Intranet
WordPress as a CMS - Case Study of an Organizational IntranetWordPress as a CMS - Case Study of an Organizational Intranet
WordPress as a CMS - Case Study of an Organizational Intranet
 
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
 
WordPress Themes and Plugins
WordPress Themes and PluginsWordPress Themes and Plugins
WordPress Themes and Plugins
 
Frontender in-2016
Frontender in-2016Frontender in-2016
Frontender in-2016
 
Castro Chapter 2
Castro Chapter 2Castro Chapter 2
Castro Chapter 2
 
Geek basics
Geek basicsGeek basics
Geek basics
 
Making Multisite Work for You
Making Multisite Work for YouMaking Multisite Work for You
Making Multisite Work for You
 
My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013
 
WCBos13 intermediate workshop
WCBos13 intermediate workshopWCBos13 intermediate workshop
WCBos13 intermediate workshop
 
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and PluginsWordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
 
WordPress Code Architecture
WordPress Code ArchitectureWordPress Code Architecture
WordPress Code Architecture
 
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
 

Similaire à Web development using ASP.NET MVC

Web Development using ASP.NET MVC at HEC
Web Development using ASP.NET MVC at HECWeb Development using ASP.NET MVC at HEC
Web Development using ASP.NET MVC at HEC
Adil Mughal
 
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
 
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
CodeCamp Iasi 10 March 2012 -   Gabriel Enea - ASP.NET Web APICodeCamp Iasi 10 March 2012 -   Gabriel Enea - ASP.NET Web API
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
Codecamp Romania
 

Similaire à Web development using ASP.NET MVC (20)

Web Development using ASP.NET MVC at HEC
Web Development using ASP.NET MVC at HECWeb Development using ASP.NET MVC at HEC
Web Development using ASP.NET MVC at HEC
 
Server side scripting
Server side scriptingServer side scripting
Server side scripting
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Server side scripting
Server side scriptingServer side scripting
Server side scripting
 
Asif
AsifAsif
Asif
 
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
 
Single Page Apps
Single Page AppsSingle Page Apps
Single Page Apps
 
Unit 02: Web Technologies (2/2)
Unit 02: Web Technologies (2/2)Unit 02: Web Technologies (2/2)
Unit 02: Web Technologies (2/2)
 
Languages and tools for web programming
Languages and tools for web  programmingLanguages and tools for web  programming
Languages and tools for web programming
 
Languages and tools for web programming
Languages and tools for web  programmingLanguages and tools for web  programming
Languages and tools for web programming
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
06 web api
06 web api06 web api
06 web api
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologies
 
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
CodeCamp Iasi 10 March 2012 -   Gabriel Enea - ASP.NET Web APICodeCamp Iasi 10 March 2012 -   Gabriel Enea - ASP.NET Web API
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
 
Ch 10: Hacking Web Servers
Ch 10: Hacking Web ServersCh 10: Hacking Web Servers
Ch 10: Hacking Web Servers
 
ASP.pptx
ASP.pptxASP.pptx
ASP.pptx
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Web Development Presentation
Web Development PresentationWeb Development Presentation
Web Development Presentation
 
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
 

Plus de Adil Mughal

Plus de Adil Mughal (10)

Write cleaner, maintainable, and testable code in Android with MVVM
Write cleaner, maintainable, and testable code in Android with MVVMWrite cleaner, maintainable, and testable code in Android with MVVM
Write cleaner, maintainable, and testable code in Android with MVVM
 
Code Sharing Between Windows Phone/Store Apps
Code Sharing Between Windows Phone/Store AppsCode Sharing Between Windows Phone/Store Apps
Code Sharing Between Windows Phone/Store Apps
 
Community Contribution Experience
Community Contribution ExperienceCommunity Contribution Experience
Community Contribution Experience
 
Quality Assurance in SDLC
Quality Assurance in SDLCQuality Assurance in SDLC
Quality Assurance in SDLC
 
Refactoring to SOLID Code
Refactoring to SOLID CodeRefactoring to SOLID Code
Refactoring to SOLID Code
 
2 Day - WPF Training by Adil Mughal
2 Day - WPF Training by Adil Mughal2 Day - WPF Training by Adil Mughal
2 Day - WPF Training by Adil Mughal
 
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
 
Practical Enterprise Application Development
Practical Enterprise Application DevelopmentPractical Enterprise Application Development
Practical Enterprise Application Development
 
DevNext - How we build applications in Industry
DevNext - How we build applications in IndustryDevNext - How we build applications in Industry
DevNext - How we build applications in Industry
 
Windows 7 For Geeks
Windows 7 For GeeksWindows 7 For Geeks
Windows 7 For Geeks
 

Dernier

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
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

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!