Web Development usingVisual Studio 2012 & ASP.NET MVC Adil Ahmed Mughal
Speaker => Adil Ahmed MughalAffiliations:Contact Information: firstname.lastname@example.org @adilamughal http://www.adilmughal.com
Agenda1. Web Fundamentals – HTTP Transactions – Static & Dynamic Web Pages – Role Web Server - IIS2. Beginning ASP.NET MVC – Overview of MVC – MVC Request Lifecycle – Exploring Model, View, Controller (File -> New Project) – Demo sample
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
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
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)
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.