25
ASP.NET and AJAX

ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

  • View
    300

  • Download
    2

Embed Size (px)

Citation preview

Page 1: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET and AJAX

Page 2: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

AgendaWhat is ASP.NET? ASP.NET VersionsDifference Between ASP and ASP.NETASP.NET Architecture OverviewASP.NET IIS life cycle OverviewASP.NET Page life cycle OverviewASP.NET State Management OverviewASP.NET Security JavaScript, CSS fileWalkthrough Creating Webpage in ASP.NETAjax- IntroductionJavaScript Async Call back to WebservicePackaging and Deploying ASP.NET Application

Page 3: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

What is ASP.NET?

ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server.

ASP.NET is a Microsoft Technology ASP stands for Active Server Pages ASP.NET is a program that runs inside IIS IIS (Internet Information Services) is Microsoft's Internet server IIS comes as a free component with Windows servers IIS is also a part of Windows 2000 and XP Professional

Page 4: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET VersionsDate Version Remarks New ASP.NET related features

January 16, 2002

1.0 First version

released together with Visual Studio .NET

Object oriented web application development supporting Inheritance, Polymorphism and other standard OOP features

Developers are no longer forced to use Server.CreateObject(...), so early-binding and type safety are possible.

Based on Windows programming; the developer can make use of DLL class libraries and other features of the web server to build more robust applications that do more than simply rendering HTML (e.g. exception handling)

April 24, 2003

1.1 released together with Windows Server 2003

released together with Visual Studio .NET 2003

Mobile controls

Automatic input validation

Page 5: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET VersionsDate Version Remarks New ASP.NET related features

November 7, 2005

2.0 codename Whidbey

released together with Visual Studio 2005 and Visual Web Developer Express

and SQL Server 2005

New data controls (GridView, FormView, DetailsView)

New technique for declarative data access (SqlDataSource, ObjectDataSource, XmlDataSource controls)

Navigation controls

Master pages

Login controls

Themes

Skins

Web parts

Personalization services

Full pre-compilation

New localization technique

Support for 64-bit processors

Provider class model

November 21, 2006

3.0 Windows Presentation Foundation (WPF)

Windows Workflow Foundation (WF)

Windows Communication Foundation which can use ASP.NET to host services.

Windows CardSpace which uses ASP.NET for login roles.

Page 6: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET VersionsDate Version Remarks New ASP.NET related features

November 19, 2007

3.5 Released with Visual Studio 2008 and Windows Server 2008

New data controls (ListView, DataPager)

ASP.NET AJAX included as part of the framework

Support for HTTP pipelining and syndication feeds.

WCF Support for RSS, JSON, POX and Partial Trust

All the .NET Framework 3.5 changes, like LINQ etc.

August 11, 2008

3.5 Service Pack 1 Released with Visual Studio 2008 Service Pack 1

Incorporation of ASP.NET Dynamic Data

Support for controlling browser history in an ASP.NET AJAX application

Capability to combine multiple Javascript files into a single file for more efficient downloading

New namespaces System.Web.Abstraction and System.Web.Routing

Page 7: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET Versions

Date Version Remarks New ASP.NET related features

April 12, 2010

4.0 Release with Visual Studio 2010 Parallel extensions and other .NET Framework 4 features

Page 8: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

Difference Between ASP and ASP.NET

ASP Interpreted and Loosely-Typed Code Mixes layout (HTML) and logic (scripting code) Limited Development and Debugging Tools No real state management Update files only when server is down Obscure Configuration Settings

ASP.NET Separation of Code from HTML Support for compiled languages Use services provided by the .NET Framework Graphical Development Environment State management Update files while the server is running! XML-Based Configuration Files

Page 9: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP Code

<%If Request.Form("login") = "Guest" AND Request.Form("password") = "Guest" Then

Response.Write "This is all the <B>cool stuff</B> we are trying to protect!"Else

Response.Write "Access Denied!"'***************************************************************

End If%>

<FORM ACTION="login.asp" METHOD="post"><TABLE BORDER=0>

<TR><TD ALIGN="right">Login:</TD><TD><INPUT TYPE="text" NAME="login"></INPUT></TD></TR><TR><TD ALIGN="right">Password:</TD><TD><INPUT TYPE="password" NAME="password"></INPUT></TD></TR><TR><TD ALIGN="right"></TD><TD><INPUT TYPE="submit" VALUE="Login"></INPUT><INPUT TYPE="reset" VALUE="Reset"></INPUT></TD></TR>

</TABLE></FORM>

Page 10: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET Architecture Overview and .NET Framework

ASP.NET Framework

Page 11: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET Architecture Overview and .NET Framework

Page 12: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET IIS life cycle Overview

Page 13: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET IIS life cycle Overview

Page 14: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET IIS life cycle Overview

ISAPI consists of two components: Extensions and Filters. ISAPI extensions are implemented as DLLs that are loaded into a process that is

controlled by IIS. ISAPI filters can be registered with IIS to modify the behavior of a server

Change request data (URLs or headers) sent by the client Control which physical file gets mapped to the URL Control the user name and password used with anonymous or basic authentication Modify or analyze a request after authentication is complete Modify a response going back to the client Run custom processing on "access denied" responses Run processing when a request is complete Run processing when a connection with the client is closed Perform special logging or traffic analysis. Perform custom authentication. Handle encryption and compression.

Page 15: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET IIS life cycle Overview

Page 16: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET IIS life cycle Overview

Page 17: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET Page life cycle Overview

Page 18: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET Page life cycle Overview

Page 19: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET State Management Overview

ASP.NET applications are hosted by a web server and are accessed using the stateless HTTP protocol

Client-Based State Management Options View state Control state Hidden fields Cookies Query strings

Server-Based State Management Options Application state Session state (In Process Mode , ASPState Mode , SqlServer Mode )

Profile Properties

Page 20: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET SecuritySecurity function Description

Authorization The process of controlling access to resources based on the authenticated identification credentials ( such as role ).

Authentication The process of obtaining identification credentials from a user ( such as name and password ), and validating those credentials against some authority.

Page 21: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET SecurityASP.NET Authentication Provider Description

Windows Authentication Provider ASP.NET uses Windows authentication in conjunction with IIS authentication. Authentication is performed by IIS in one of three ways: basic, digest, or Integrated Windows Authentication. When IIS authentication is complete, ASP.NET uses the authenticated identity to authorize access.

Forms Authentication Provider A system by which unauthenticated requests are redirected to an HTML form using HTTP client-side redirection. The user provides credentials and submits the form. If the application authenticates the request, the system issues a form that contains the credentials or a key for reacquiring the identity. Subsequent requests are issued with the form in the request headers; they are authenticated and authorized by an ASP.NET handler using whatever validation method the application developer specifies.

Passport Authentication Provider Centralized authentication service provided by Microsoft that offers a single logon and core profile services for member sites.

Page 22: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

ASP.NET Security

Authentication<configuration> <system.web>

<authentication mode = " [ Windows | Forms | Passport | None ] "> </authentication>

</system.web> </configuration>

Authorization<authorization> < [ allow | deny ] [ users ] [ roles ] [ verbs ] /> </authorization>

<authorization> <allow users = "John" /> <deny users = "*" /> </authorization>

Page 23: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

JavaScript, CSS file

JavaScript JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming language JavaScript is usually embedded directly into HTML pages JavaScript is an interpreted language (means that scripts execute without

preliminary compilation)

CSS Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style Sheets can save a lot of work External Style Sheets are stored in CSS files

Page 24: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

Ajax- Introduction

AJAX : Asynchronous JavaScript and XML. AJAX is a technique for creating fast and dynamic web pages. AJAX allows web pages to be updated asynchronously by exchanging small

amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.

http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ http://msdn.microsoft.com/en-us/library/bb399001.aspx

Page 25: ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview

Questions