Tutorial -01. Objective In this session we will discuss about : 1.What is MVC? 2.Why MVC? 3.Advantages of MVC over ASP.NET 4.ASP.NET development models.

Slides:



Advertisements
Similar presentations
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Advertisements

Web Server Programming
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
Server-Side vs. Client-Side Scripting Languages
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
UNIT-V The MVC architecture and Struts Framework.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Deployment of web Site. Preparing the web site for deployment you now have two versions of web site 1 -one running in the production environment 2-one.
JavaScript & jQuery the missing manual Chapter 11
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Session 1 - Introduction and Data Access Layer
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
Microsoft Visual Basic 2005: Reloaded Second Edition
CSC 494/594 C# and ASP.NET Programming. C# 2012 C# Object-oriented language with syntax that is similar to Java.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Introduction to ASP.NET 1www.tech.findforinfo.com.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
ASP/ASP.NET: Tricks and Tips How to get Microsoft’s Programming Language to work for you By Wade Tripp Park University
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
C# AND ASP.NET What will I do in this course?. MAJOR TOPICS Learn to program in the C# language with the Visual Studio IDE (Interactive Development Environment)
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Introduction to MVC Introduction NTPCUG Tom Perkins, Ph.D.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
Christopher M. Pascucci.NET Programming CodeBehind.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
ASP.NET MVC An Introduction. What is MVC The Model-View-Controller (MVC) is an architectural pattern separates an application into three main components:
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
 Lecture  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
1 Adding a Model. We have created an MVC web app project Added a controller class. Added a view class. Next we will add some classes for managing movies.
Introduction to ASP.NET MVC [Name] [ Address] [Blog URL]
1 Using MVC 6. MVC vs. ASP Web Forms Both run under ASP.NET Can coexist In Web Forms, browser requests page. xxx.aspx and xxx.aspx.cs on the server Page.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
ASP.NET MVC Introduction
Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek
Introduction to .NET Framework Ch2 – Deitel’s Book
Building Web Applications with Microsoft ASP
Haritha Dasari Josue Balandrano Coronel -
Web Development in Microsoft Visual Studio 2013
Web Development Using ASP .NET
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
C# and ASP.NET Programming
Presentation transcript:

Tutorial -01

Objective In this session we will discuss about : 1.What is MVC? 2.Why MVC? 3.Advantages of MVC over ASP.NET 4.ASP.NET development models 5.How to Install MVC? 6.MVC Release History 7.Creating First Asp.Net MVC Application

What is MVC?

MVC ? MVC is successor of ASP.NET So Before going to discuss about MVC lets little bit talk about Asp.Net. It is a part of.NET framework developed by Microsoft. It is used to Create Web Application(Internet Application).So that every one can access this application from anywhere. This application will be access thru Web Browser( Firefox, Chrome. Internet Explorer etc) by passing URL in url bar. This application will be stored & execute on server. Like: are internet application we are accessing thru url.

MVC (Continue…) There are a lot of other programming language( a language that machine understand) used to create Internet application, 1.Java 2.PHP 3.CGI 4.ASP

Disadvantage of ASP.NET There are a lot of code required to create Web(Internet) Application using ASP.NET, MVC make it simple by categorize the structure of Asp.Net in 3 parts. Lets talk about ASP.NET internet development model in details:

ASP.NET supports three different development models

Differences between these development models are:

MVC Programming Model MVC is one of three ASP.NET programming models. MVC is a framework for building web applications using a MVC (Model View Controller) design: 1)The Model represents the application core (for instance a list of database records). 2)The View displays the data (the database records). 3)The Controller handles the input (to the database records).

Why MVC? ASP.NET MVC helps to reduce the complexity of the web application by dividing an application into three layers, Model, View and Controller. This separation (loose coupling) helps in some long term benefits like isolation of components while development and also this separation provides better support for test-driven development (TDD). ASP.NET MVC web site are good in performance and also easy to maintain.

How to Install MVC? Before going to install mvc first check what version of MVC already installed in Your computer. To check what MVC version already installed in My Machine open control panel then open add or remove programs dialogue box.

How to Install MVC? (Continue…)

MVC Release History

How to Download MVC 3 & MVC 4?

EX

Introduction of ASP.NET MVC 4 ASP.NET MVC 4 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of ASP.NET and the.NET Framework. Currently ASP.NET MVC 4 is supported in Visual Studio 2010 and Visual Studio 2012, previous versions of Visual Studio does not support ASP.NET MVC 4 as of now. If you don’t have ASP.NET MVC 4 in your box then install MVC 4 for Visual Studio 2010 or else use Visual Studio 2012 to get started with this.

Creating First Asp.Net MVC Application

Step-1 If you choose.NET Framework 3.5 you are not able to see MVC 3 & 4 option in new Project Box.

Step-2 If you choose.NET Framework 4.0 Then

Step-3 If you choose.NET Framework 4.0 Then

Step-4

Step-5

Step-6

Step-7

Step-8

Step-9

Advantage of MVC over Asp.Net WebForms in details ?

MVC vs. WebForms

In WebForms whenever I want to execute any event say Button_Click() before that page life cycle will execute first (you like or not doesn’t keep matter). Page Life Cycle execute First Then event

MVC vs. WebForms

In MVC direct hit come to action(method you want to be run)

Example

Continue…Namespace

Assembly & Controller used in mvc application

Running First MVC Application

How to determine what version of mvc is being used by an existing mvc web application ?

MVC Version info in existing Application There are two ways : 1.At design time 2.At runtime Asp.net mvc namespace:

Version Info:

At runtime

Compare Asp.Net MVC & Web Application 1.Asp.Net MVC Application: 2.Web Application:

MVC URL Server Functions in Controller are generally called as Controller Action Methods. In MVC’s URL are mapped to Controller Action Methods.

Web Form URL Server In WebForm’s URL are mapped to physical Files.

How to deploy application on IIS 1.Open IIS(start->run->type inetmgr)

How to deploy application on IIS 2.Deploy application on IIS.

How to deploy application on IIS 2.Deploy application on IIS.

Summary!!