WEB428 ASP.NET 2.0: Advanced Server Controls and Web Parts with ASP.NET 2.0 Andres Sanabria Program Manager Web Platform and Tools Team Microsoft Corporation.

Slides:



Advertisements
Similar presentations
Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa Overview of ASP.NET 2.0.
Advertisements

ASP.NET 2.0: Advanced Server Controls and Web Parts with ASP.NET 2.0 Sam Spencer Program Manager Web Platform and Tools Microsoft DEV414.
Microsoft Dynamics AX 2009 Integration and Development with.NET Framework Enterprise Portal.
Developing An Advanced ASP.NET Server Control With Rich Design-Time Eilon Lipton PRS401 Software Design Engineer Microsoft Corporation.
Windows SharePoint Services: Advancements In Document, Content, And Data Storage Dustin Friesenhahn OFF409 Program Manager Microsoft Corporation.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
1 Frameworks. 2 Framework Set of cooperating classes/interfaces –Structure essential mechanisms of a problem domain –Programmer can extend framework classes,
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Microsoft ASP.NET AJAX - AJAX as it has to be Presented by : Rana Vijayasimha Nalla CSCE Grad Student.
IIS 7: The Next Generation Web Application Server Platform Michael Volodarsky Program Manager Web Platform and Tools Team Microsoft Corporation.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Saad Ladki Program Manager Microsoft Corporation WUX403.
WEB329 ASP.NET: A Lap Around the New Enhancements for Web Developers in Microsoft Visual Studio 2005 Omar Khan Lead Program Manager Web Platform and Tools.
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
2 A First Look at Windows Presentation Foundation Everywhere ("WPF/E") Joe Stegman Lead Program Manager Microsoft Corporation.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
AJAX in ASP.NET James Crowley Developer Fusion
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Sofia, Bulgaria | 9-10 October Asynchronous Programming for ASP.NET 2.0 Developers Julie Lerman The Data Farm Julie Lerman The Data Farm.
Using the Actions Pane, Host Controls, and Smart Tags
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
ASP.NET Controls. Slide 2 Lecture Overview Identify the types of controls supported by ASP.NET and the differences between them.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
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.
Microsoft Office InfoPath 2007 Development, Deployment, And Hosting For Rich And Browser Forms Jessica Gruber Consultant Microsoft Corporation.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing for Custom XML Tristan Davis Program Manager Microsoft.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
1 ® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 1 Building Portlets with ColdFusion Pete Freitag Foundeo, Inc.
10 – 12 APRIL 2005 Riyadh, Saudi Arabia. Building multi-lingual ASP.Net application that handle western languages and Arabic with a single code base.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
WEB320 Migrating ASP.NET 1.x Applications to ASP.NET 2.0 Stefan Schackow Program Manager Web Platform and Tools Team Microsoft Corporation.
Windows Role-Based Access Control Longhorn Update
DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp.
Sofia, Bulgaria | 9-10 October ASP.NET: Developing Portal UI With Web Parts Goksin Bakir Yage Ltd Microsoft Regional Director, MEA Goksin Bakir Yage Ltd.
Quick overview of ASP.NET Ajax Ajax deep-dive Cover some key real-world problems Discuss solutions, patterns, opportunities Lots of demos And more of.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Microsoft ® Official Course Developing a Publishing Site for Web Content Microsoft SharePoint 2013 SharePoint Practice.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
WEB322 ASP.NET Internals: Under the Covers – Exploring Internals, Page Lifecycle and the Compilation Model Simon Calvert Program Manager Web Platform and.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
AJAX Use Cases for WSRP Subbu Allamaraju BEA Systems Inc WSRP F2F Meeting, May 2006.
Extending SharePoint through Web Parts and ASP.NET 최승현 대리 한국마이크로소프트.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
Module 5: Managing Content. Overview Publishing Content Executing Reports Creating Cached Instances Creating Snapshots and Report History Creating Subscriptions.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
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.
Name Title Microsoft Corporation
Developing Custom ASP.NET Providers For Membership And Role Manager Stefan Schackow PRS404 Program Manager – Web Platform and Tools Microsoft Corporation.
ASP.NET Architecture Mike Taulty Developer & Platform Group Microsoft Ltd
The Microsoft Technical Roadshow 2007 AJAX Development Mike Ormond Developer & Platform Group Microsoft Ltd
Building rich web applications with ASP.NET AJAX Mike Ormond Developer & Platform Evangelism Group, Microsoft Ltd Developer & Platform Evangelism Group,
Business Connectivity Services in SharePoint 2010 and Office 2010
Enterprise Library Overview
Microsoft Dynamics.
Customizing the SharePoint Mobile Experience
ASP.NET 4.0 State Management Improvements – Deep Dive
DAT381 Team Development with SQL Server 2005
Microsoft Dynamics.
Windows Forms in Visual Studio 2005: An in-depth look at key features
Introduction to ASP.NET Parts 1 & 2
Presentation transcript:

WEB428 ASP.NET 2.0: Advanced Server Controls and Web Parts with ASP.NET 2.0 Andres Sanabria Program Manager Web Platform and Tools Team Microsoft Corporation

Agenda Control Framework overview Composite control ScriptOMFocus Web resources Script callback Asynchronous tasks Web Parts – Connection Web Parts – Editing Web Parts – Personalization Web Parts – Chrome

Control Framework Overview Rich framework to enable building “smart” server controls Preserves existing knowledge and compatibility Same model as v1, but enables much more Simplifies development with more functional base classes targeting common scenarios Incorporates learning and general recommended patterns Provides new services and framework features

Composite Controls Powerful way to create new controls by combining the functionality of one or more existing controls CompositeControl base class simplifies development New base class introduced in Microsoft ASP.NET 2.0 Incorporates recommended pattern Implements INamingContainer Overrides Controls property to call EnsureChildControls() Associated designer ensures child controls are created at design-time as well

Creating a Composite Control

Script OM Provides new features such as: DefaultButton Maintain scroll position on Postback Focus, Setfocusonerror (for validator) Web resources Out-of-band callbacks Generate and render client-script Valid XHTML tags Provides API to register inline script or reference a *.js file Available via Page.ClientScript object public void RegisterStartupScript( Type type, string key, string script, bool addScriptTags); Type type, string key, string script, bool addScriptTags); public void RegisterClientScriptInclude( Type type, string key, string url); Type type, string key, string url);

Define which control receives focus: Client side Server side Controls can override to delegate focus to a child control if they want explicit control Focus Public void Page.SetFocus(..); SetFocusonError; Control.Focus(..)

Creating a Control that Focus of the Page

Web Resources Simple deployment model of client files Package scripts, images, style sheets, etc. as assembly resources Instead of installing files into the “aspnet_client” folder ASP.NET does the work of serving up the content Extracts data from the assembly resource Secure – all assembly resources do not automatically become Web-accessible Selects the right response caching for performance [assembly: WebResource(“foo.image.bmp","image/gif")] img.ImageUrl = Page.ClientScript.GetWebResourceUrl (this.GetType(), "ExtendedTextBox.CoffeeBean.bmp");

Embed Image and Script Resource into a Custom Control

Script Callbacks Improves UI experience Page is interactive while the server processes request No browser flashing or loss of scroll position Does not add to the navigation history Control developer writes some additional code Modeled after post-back event handling Also implements a script callback function Page framework handles partial page execution

Click Init Load State Process Postback Data Load Callback Event ICallbackEventHandler Script Event Handler Script Callback Trigger Async Request Return result of Callback Unload Callbacks

Develop a TextFilter Out-of-Band Control

Asynchronous Task Allow a container to register an asynchronous task to the page Container will be notified when task completed, time-out or ended Time Out is defined at the page directive Control developers can alter the rendering based on the async task result

Control State The essential bits of information to allow controls to ensure expected behavior E.g., SelectedIndex, EditIndex, PageIndex on GridView; ReadOnly property on HtmlEditor Separated out of view state Page developer can turn off view state without losing functionality Control state cannot be turned off Controls must opt-in to participate in this mechanism Should store only the essentials, so control state doesn’t become another view state Properties stored in control state should not be saved in view state as well

Adding Async Task to the TextFilter Control

Web Parts: Connection Interface Defines the communication contract between two Web parts Connection types Provider Control that provides data and schema information Implements a provider connection point Defines a call back that returns an instance of the interface One provider connection point can connect to any number of consumer connection points of the same type Consumer Control that gets data Implements a consumer connection point Defines a call back that gets an instance of the interface One consumer connection point can connect to only one provider connection points of the same type

Web Parts: Connection (cont’d) 1. Web Part Manager request interface to the provider 2. Web Part Manager get an interface from a provider 3. Web Part manager give the interface to the consumer 4. Consumer call provider via interface Provider Consumer WebPartManager

Web Parts: Connection (cont’d) Dynamic connections are done via the browser Static connections are defined by the page developer

Implementing Connection Capabilities to the Text FilterControl

Web Parts: Editing Auto-generated user interface [WebBrosable][WebDisplayName][WebDescription] Web Part can add a custom EditorPart to the EditorZone Implement IWebEditable in the control Return a collection of the Editor Parts EditorPartCollection CreateEditorParts(); Create an EditorPart Create a class that Inheritance from EditorPart Override: Public abstract void SyncChanges(); Protected internal abstract bool ApplyChanges();

Adding an Editing UI to the TextFilter Control

Web Parts: Personalization Personalization scope SharedPer-user Personalizing data Automatic Add [WebPersonalization] decoration to properties Must have a public get and set accessor, and take no index parameters Manual Implement IPersonsonalizable Provide fine-grained control over how control personalization data is get/set

Web Parts: Personalization (cont’d) Receives notification about the orphaned properties Manager property persistence when upgrades to existing controls Implement IVersioningPersonsonalizable If a Web part does not implement IVersioningPersonalizable, orphaned property values will be deleted

Adding Personalization and Web Part Versioning

TitleTitle VerbsVerbs ChromeChrome ContentContent TitleIconTitleIcon Web Parts: Chrome Developer can create a new Web part rendering Create a chrome class Associate the chrome class to the WebPartZone All Web Parts contained in a WebPartZone will use the same chrome

Adding a New Chrome to the Web Part Application

Summary Building control and advance features could not be easier Take Advantage of the new powerful framework features Building control and advance features could not be easier Take Advantage of the new powerful framework features

Your Feedback is Important! Please Fill Out a Survey for This Session on CommNet

© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.