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 ASP.NET State Management Overview ASP.NET Security JavaScript, CSS file Walkthrough Creating Webpage in ASP.NET Ajax- Introduction JavaScript Async Call back to Webservice Packaging and Deploying ASP.NET Application
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
ASP.NET Versions DateVersionRemarksNew ASP.NET related features January 16, 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, released together with Windows Server 2003 released together with Visual Studio.NET 2003 Mobile controls Automatic input validation
ASP.NET Versions DateVersionRemarksNew ASP.NET related features Novembe r 7, 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 Novembe r 21, 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.
ASP.NET Versions DateVersionRemarksNew ASP.NET related features Novembe r 19, 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, Service Pack 1Released 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
ASP.NET Versions DateVersionRemarksNew ASP.NET related features April 12, Release with Visual Studio 2010Parallel extensions and other.NET Framework 4 features
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
ASP Code <% If Request.Form("login") = "Guest" AND Request.Form("password") = "Guest" Then Response.Write "This is all the cool stuff we are trying to protect!" Else Response.Write "Access Denied!" '*************************************************************** End If %> Login: Password:
ASP.NET Architecture Overview and.NET Framework ASP.NET Framework
ASP.NET Architecture Overview and.NET Framework
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.
ASP.NET IIS life cycle Overview
ASP.NET Page 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
ASP.NET Security Security functionDescription AuthorizationThe process of controlling access to resources based on the authenticated identification credentials ( such as role ). AuthenticationThe process of obtaining identification credentials from a user ( such as name and password ), and validating those credentials against some authority.
ASP.NET Security ASP.NET Authentication ProviderDescription Windows Authentication ProviderASP.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 ProviderA 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 ProviderCentralized authentication service provided by Microsoft that offers a single logon and core profile services for member sites.
ASP.NET Security Authentication Authorization
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
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.
Questions