ASP.NET Application Framework

Slides:



Advertisements
Similar presentations
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Advertisements

DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Building Scalable and Reliable Web Applications Vineet Gupta Technology Evangelist Microsoft Corporation
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Developing an ASP.NET Application and using the Mobile Internet Toolkit Bart Vande Ghinste Developer Consultant Microsoft Belux.
IT533 Lectures Configuring, Deploying, Tracing and Error Handling.
CONFIGURING WINDOWS SERVER MIS 424 Professor Sandvig.
Preview of ASP.NET 2.0 in Delphi Course #3182 Jim Tierney Principal Engineer - Borland.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Chapter 9 Using the SqlDataSource Control. References aspx.
Session 11: Security with ASP.NET
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
Copyright © 2005, 2006 Beta V Corporation All rights reserved Hitchhiker’s Guide to Visual Studio and SQL Server – Innovations in Reporting William R.
Meir Botner David Ben-David. Project Goal Build a messenger that allows a customer to communicate with a service provider for a fee.
Integrating CFML with ASP.NET Vince Bonfanti President New Atlanta Communications, LLC.
ASP.Net Web Applications. Characteristics of a typical data driven web application Web Server HTML Graphics Active-X Java Applets HTTP Request ADO / JDBC.
Introduction to ASP.NET 1www.tech.findforinfo.com.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Securing a Microsoft ASP.NET Web Application.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
Phone: Mega AS Consulting Ltd © 2007  CAT – the problem & the solution  Using the CAT - Administrator  Mega.
Efficient Deployment & Management of ASP.NET 2.0 Applications on IIS 6.0 Alexis Eller Program Manager Internet Information Services Microsoft Corporation.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
The.NET Runtime and IIS Presented by Chris Dickey – cdickey.net consulting
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
Module 11: Securing a Microsoft ASP.NET Web Application.
Module 7: Creating a Microsoft ASP.NET Web Application.
From DNA to.NET Design Path. Objectives Sketch up a typical Win DNA Application Sketch up the.NET version Compare Design and Implementation Advantages.
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.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp.
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,
Web Access. Overview  Purpose  Prerequisites  Install Components  Enable Virtual Directories  IIS Configuration & Security  Troubleshooting.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Module 4: Creating a Web Application with Web Forms
ASP. NET Differences Dave Webster EMEA Technical Team dave
Migrating ASP to ASP.NET Matt Gibbs ASP.NET Development Manager.
Configuring and Deploying Web Applications Lesson 7.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
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 Course From Intermediate to Advance level By Arsalan Ahmed 3 Months Course Cell :
Alexey Polovinkin Post graduate student, CMC department.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
ASP.NET Essentials State management, authentication, and Web Services Daniele Pagano Arizona State University.
ASP.NET Overview Brian Hitney Developer Evangelist Microsoft Corporation
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
Agenda Introduction Security flow for a request Authentication
Efficient Deployment & Management of ASP. NET 2
Authentication and Authorisation in ASP.Net
Session Variables and Post Back
Visual Studio Tools for Office 2005
Security mechanisms and vulnerabilities in .NET
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
מבוא ל ASP.NET שיעור 1 : מבוא ל ASP.NET מצגת מס' 1
Application Infrastructure
Moving from ASP to ASP.NET
Introduction to .net Impersonation
Module 10: Creating a Web Application with Web Forms
ASP.NET Module Subtitle.
ASP.NET 4.0 State Management Improvements – Deep Dive
Web Technology Unit -3.
Mark Quirk Head of Technology Developer & Platform Group
Presentation transcript:

ASP.NET Application Framework Sean Puffett Developer Evangelist Microsoft UK seanpuff@microsoft.com

Agenda Caching Data Binding Session State Configuration Authentication Security Deployment

Caching Full page output caching Fragment Caching Extensible Cache API Vary by params, language, user-agent Fragment Caching Enables portions of pages to be cached Extensible Cache API Developers can cache arbitrary objects Multiple expiration policies, file change invalidation

Caching - Additional Topics Page Output Caching <%@ OutputCache Duration="60" %> Page Data Caching Cache[“MyDataSet”] = SomeDataSet Like Application Variables Scavenging Expiration Dependencies

demo Simple Fragment Caching

Data Binding Provides a simple, declarative way to bind Web UI elements to data “Simple” binding to a single property Or directly into the page “List” binding to a data source DataGrid, DropDownList, etc. Huge variety of data sources supported But… One way snapshot model Requires code to update the data source

Simple Binding Syntax Step 1: Set bindings Declaratively (in HTML): <asp:Label Text=<%# custID %> … /> Step 2: Call DataBind Sub Page_Load(s As Object, e As EventArgs) Label1.DataBind() End Sub

Simple Binding Example <%@ Page language=“VB” %> <script runat=server> Sub Page_Load(s as Object, e as EventArgs) Label1.DataBind() End Sub </script> <html> <body> <asp:Label id=Label1 runat=server Text=<%# DateTime.Now %> /> </body> </html>

Binding Data To Lists DataGrid, DropDownList, etc. Supported DataSources ADO.NET Connected: DataReader ADO.NET Cached: DataSet, DataTable, DataView Also other IEnumerable types: ArrayList, Array Hashtable Result of a method

List Binding Syntax Step 1: Set bindings DataGrid1.DataSource=ds; Declaratively (in HTML): <asp:DataGrid DataSource=<%# ds %> … /> Imperatively (in code): DataGrid1.DataSource=ds; Step 2: Call DataBind Sub Page_Load(s As Object, e As EventArgs) DataGrid1.DataBind() End Sub

demo Data Binding A DataGrid Control

Session State 3 Modes of Session State In-Proc StateServer SqlServer Stores values in the memory of the ASP.NET Worker Process StateServer Uses a Microsoft Windows Service to store Session Variables SqlServer Uses one or more SQL Servers to store Session Variables

Session Variables Store state information No longer require Cookies Share between servers <sessionstate inproc="false" server=“AnotherServer" port="42424" />

Scale-Out Web Architecture Session state supports web farms Applications no longer tied to one machine Single state server supports multiple app servers Multiple Session State providers ASP.NET state server SQL Server

demo In-Proc Session State

Configuration Stored in XML file in directory with pages web.config Contains all ASP.NET settings Authentication, compile options, custom error pages, etc. Allows adding Application settings DSN, etc. Extensible Can extend with custom configuration data Overrides/Adds to settings in machine.config

IBuySpy Configuration <appSettings> <add key="DSN" value=“data source=ibs2;Trusted_Connection=yes" /> </appSettings> <location path="CheckOut.aspx"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location> <authentication mode="Forms"> <forms name="IBuySpyAuth" loginUrl="Login.aspx" protection="all"> </authentication> <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.aspx"/> </configuration> <appSettings> <add key="DSN" value="data source=ibs2;Trusted_Connection=yes" /> </appSettings> <location path="CheckOut.aspx"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location> <authentication mode="Forms"> <forms name="IBuySpyAuth" loginUrl="Login.aspx“ protection="all“> </authentication> <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.aspx"/>

ASP.NET Authorisation Basic, Digest and NTLM leverage IIS Credential verification against Active Directory Passport module provided Exposes passport profile API Custom, forms-based authentication Easy to use, with cookie token tracking Custom login screen (no popup dialogs) Credential checks against database, etc.

demo Introducing Forms Authentication

Deployment - with ASP DLL Locking MTS/COM+ Registry Page hit Shutdown web application Shutdown Internet information Server Edit in Visual Interdev MTS/COM+ Shutdown package Binary compatibility Registry

Deployment - with .NET “XCopy” Deployment Supports all web resources Components in .\bin No registration required for components No Locked DLLs (Server stop not required) Supports all web resources Web pages, web services Compiled components (DLL) Configuration files

Deployment - continued Update running apps Simply copy DLL on top of old ones Application gracefully migrated to new code Old application stopped when all users have closed the session Applications are Isolated Each application can have its own version Uninstall Delete

demo Replacing A Running Assembly

Summary Caching Data Binding Session State Configuration Authentication Security Deployment

Useful Resources Walkthrough: Using a DataGrid Web Control to Read and Write Data: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughusingdatagridwebcontroltoreadwritedata.asp INFO: ASP.NET State Management Overview http://support.microsoft.com/?id=307598 Book: Essential ASP.NET by Fritz Onion (ISBN: 0-201-76039-8)

Additional Information Post Events Site All information on past events, slide decks etc http://www.microsoft.com/uk/msdn/postevents The UK MSDN Site & Flash Local news, events, webcasts http://www.microsoft.com/uk/msdn Register to received the bi-weekly MSDN Flash by email http://www.microsoft.com/uk/msdn/flash.aspx GotDotNet and ASP.NET – lots of excellent resources http://www.gotdotnet.com http://www.asp.net