ASP.NET Overview Brian Hitney Developer Evangelist Microsoft Corporation

Slides:



Advertisements
Similar presentations
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Advertisements

Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Satisfy Your Technical Curiosity Internet Information Services (IIS) 7.0 End-to-End Overview of Microsoft's New Web Application Server Bart De Smet MVP,
Membership, Role Manager and Profile Membership, Role Manager and Profile Matt Gibbs ASP.NET Development Manager.
Internet Information Server (IIS)
 Visual Studio has great support for building ASP.NET web applications  Real web application development involves more than just copying the files created.
 Mark Friedman Architect Developer Division Microsoft Corporation.
April-June 2006 Windows Hosting Seminar Series Product Roadmap: IIS 7.0 Matthew Boettcher Web Platform Technical Evangelist (Hosting) Developer & Platform.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
 Vijay Sen Senior Program Manager Microsoft Corporation ES14.
IT533 Lectures Configuring, Deploying, Tracing and Error Handling.
Saad Ladki Program Manager Microsoft Corporation WUX403.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
WSS 3.0 Architecture and Enhancements Ashvini Shahane Member – Synergetics Research Lab.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
A Close Look Inside the SharePoint Engine Randy Williams, MVP MOSS Synergy Corporate Technologies
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
February 16, Aaron Cuffman Andy Nagle Adam Schultz Web Site.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
DEV339 Best Practices for Debugging Visual Studio.NET Applications Keith Pleas Architect, Guided Design
The.NET Runtime and IIS Presented by Chris Dickey – cdickey.net consulting
ASP.NET State Management. Slide 2 Lecture Overview Client state management options Cookies Server state management options Application state Session state.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
STATE MANAGEMENT.  Web Applications are based on stateless HTTP protocol which does not retain any information about user requests  The concept of state.
Module 11: Securing a Microsoft ASP.NET Web Application.
Slide 1 ASP Authentication There are basically three authentication modes Windows Passport Forms There are others through WCF You choose an authentication.
Module 7: Creating a Microsoft ASP.NET Web Application.
Reset and Recycle IIS Reset Application Pool Management Error Codes New HTTP Sub-status codes Custom/Detailed Errors Tracing in IIS7 and.
Beginning ASP.NET (Part 3).NET 2.0 Core Libraries Tuc Goodwin.
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
This is the main tracing and diagnostics presentation. Very important that this be practical and useful information. IT Pro audience is very.
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,
IIS and.Net security -Vasudha Bhat. What is IIS? Why do we need IIS? Internet Information Services (IIS) is a Web server, its primary job is to accept.
Understanding Web Applications Lesson 4. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Web Page Development Understand Web.
IIS 7 for Hosters Deven Kampenhout Web Platform Architect Developer & Platform Evangelism.
Configuring and Deploying Web Applications Lesson 7.
Overview of Previous Lesson(s) Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
Svetlin Nakov Telerik Corporation
PostBack  When an initial request for a page (a Web Form) is received by ASP.NET, it locates and loads the requested Web Form (and if necessary compiles.
Internet Information Server 6.0 & new management features.
ASP.NET 2.0 Security Alex Mackman CM Group Ltd
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.
Alexey Polovinkin Post graduate student, CMC department.
Developing Custom ASP.NET Providers For Membership And Role Manager Stefan Schackow PRS404 Program Manager – Web Platform and Tools Microsoft Corporation.
Custom Authentication Providers For DotNetNuke v5.0 Stan Schultes – Sarasota, FL Florida Community Leader
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
ASP.NET Architecture Mike Taulty Developer & Platform Group Microsoft Ltd
Building More Powerful ASP.NET Applications with IIS7 Michael Volodarsky COM303 Program Manager Microsoft Corporation.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Module 4: Troubleshooting Web Servers. Overview Use IIS 7.0 troubleshooting features to gather troubleshooting information Use the Runtime Control and.
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
Security mechanisms and vulnerabilities in .NET
Haritha Dasari Josue Balandrano Coronel -
ASP.NET Application Framework
Web Development in Microsoft Visual Studio 2013
Web Development Using ASP .NET
ASP.NET Module Subtitle.
ASP.NET 4.0 State Management Improvements – Deep Dive
Microsoft Dynamics.
Introduction to ASP.NET Parts 1 & 2
Presentation transcript:

ASP.NET Overview Brian Hitney Developer Evangelist Microsoft Corporation

Agenda ASP.NET Environment –Project Setup / Compilation model / Configuration –WebForms overview –User Controls/Server Controls –Authorization/Authentication providers –New features in ASP.NET Advanced Topics –HttpHandlers/HttpModules –Caching –Deployment Projects

Working with Projects – VS2003 VS2003: Single solution file. Project precompiled into a single DLL, ASPX markup pages deployed. Pros: –Compiles/debugs like other projects (WinForms, etc.) –Slightly more efficient. –Single file deployment + referenced DLLs + HTML. Cons: –Not easy to use in team environments. –Often leads to monolithic DLLs for large sites.

Working with Projects - VS2005 VS2005: Website Compilation Model – All files compiled on demand. Pros: –Works better in teams. –Easy to deploy/test incremental updates. Cons: –Can be difficult to upgrade from VS2003. –First hit incurs compilation overhead. –May mean more files to deploy. Web Application Projects – VS2005 add on to enable old style of building web applications.

Working with Projects - VS2008 VS2008: Both models supported out of the box. File -> New -> Project -> ASP.NET Web App File -> New -> Web Site Old style New style

WebForms in a Nutshell ASPX pages handled by a handler that facilitate the page lifecycle and events (such as Page_Load, PreRender, and control events). Uses ViewState to encoded state-specific information otherwise lost in the stateless nature of HTTP. Extensive controls library to abstract functionality. Buttons, textboxes, etc. Extensible. Challenges/Criticisms Can be difficult to manage many events with page lifecycle. –Do you load data in Init, Load, or event handlers? –How do you handle changes? –Developers still need to fully understand request/response nature of the web.

Server Controls Typically compiled into a DLL. Represents a small piece of functionality, like a textbox or button. Responsible for handling any special rendering requirements, raising events, etc. Properties Event Handlers

User Controls Collections of HTML and/or Server Controls for a broader purpose – such as a login dialog box. Typically part of a project and compiled with the project. Can expose properties. Part of the page lifecycle (OnInit, Page_Load, Prerender, etc.)

Master Pages Same look and feel to many pages; code in one spot.

Demo Server Controls Master Pages

Session Management InProc StateServer SqlServer

Authentication & Authorization Originally, IIS configured via Anon/Basic/Integrated and explicit file ACLs. ASP.NET introduced authorization/roles to resources via web.config setting. Works only for pages handled by ASP.NET ISAPI.

Authentication & Authorization Forms based authentication model –Provides an abstraction to maintaining user state –Done using an authorization ticket in an HTTP Cookie –You write the code to handle login, new users, etc., Forms Auth handles the client.

Authentication & Authorization ASP.NET 2.0 and Up: Membership and Role Providers –Supports SQL Server or Active Directory For SQL Server, handles password hashing, minimum password and strength, etc. –Easily pluggable into Forms auth (or custom auth) –Extensible – easy to author your own Membership provider by inheriting from the base class. –Source code available.

ASP.NET Diagnostics Advanced Tracing Health Monitoring Debugging

Tracing System.Diagnostics.Trace Trace.Write (various Overloads) 11 Sections of Request Information Logged Page Level Tracing –Page Directive –Allows you to designate on a page by page basis Application Level –Set in the Web.Config File –Page Level supersedes Web.Config settings

View Trace Data Multiple Pages at Once –Trace.axd –Great for troubleshooting an application without user’s knowledge –Served by a custom HttpHandler Output for the Specific Page –Appended to the Bottom of the normal output –Only shows data for specific request

Health Monitoring Enables You to Log Web Events –Failed Logins –Application Starts –Unhandled Exceptions Event Data Can Be Sent to Specific Stores –Event Log –Database – Can Be Extended Through the Provider Model Configured in the Web.Config

Debugging Set Break Points on Specific Lines of Code with F9 Can Attach to a Running Process Remote Debugging Rich Set of DataTips Data Visualizers Rich JavaScript Debugging Experience Can Step Into SQL Server Queries

Overview of What’s New in VS2008 Javascript Intellisense/Debugging support Nested Master Pages Enhanced CSS Management Multi-targeting support. New data controls. MUCH improved designer.

Advanced Topics HttpHandlers and HttpModules Caching Web Deployment Projects Custom Configuration

HttpHandlers & HttpModules HttpModule #1 HttpModule #2 HttpModule #3 HttpHandler

HttpHandlers Every request in ASP.NET is processed by an HttpHandler –For example, ASPX pages are handled by the default ASPX Page HttpHandler. You can create your own httpHandlers to render content based on the request Handlers process the incoming request and generate the response output. Can be directly plugged in IIS7 (no more registering extensions to the ISAPI ASP.NET DLL).

HttpModules HttpModules are Similar to ISAPI Filters They are built using.NET The Integrate with the ASP.NET Request Pipeline –The Pipeline is over 20 events that fire during the processing of a request. Used to ‘Catch’ the Request and React as needed. –URL Rewriting –Security –Logging

Registering Handlers and Modules

Caching: Entire Page or User Controls Functionally equivalent… But! “Private” cache, clients unaware.

Caching Data/Objects Far more powerful –Can tie into SQL Server for data change notifications. Granular Easier to Control

Caching Client Side: Content Expiration Covered later in IIS section, however: –Useful for static content to decrease load times – fewer requests. –Tells clients to “bugger off” for specified time.** –Essentially a “public” cache.

Caching Client Side Etags and IF-MODIFIED-SINCE –Client requests resource each request. (Can be configured via Max-Age setting.) –If not changed, send 304 Not Modified response. –Still requires round trip, but saves bandwidth.

Demo Caching page level Caching data and objects

Web Deployment Projects Offers options for build/deployment tasks, including Precomplilation. Choose to compile all resources, or leave as-is.

Custom Configuration Sections Can add Custom Configuration Sections to Web.Config Inherits System.Configuration.ConfigurationSection Much more extensible than appSettings

Q&A and Lab