Page MasterPage- File="Site.master" %> Page MasterPage- File="Site.master" %> Site.masterdefault.aspxhttp://.../default.aspx">

Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sofia, Bulgaria | 9-10 October Developing An Advanced ASP.NET Server Control With Rich Design-Time Goksin Bakir Yage Ltd Microsoft Regional Director, MEA.

Similar presentations


Presentation on theme: "Sofia, Bulgaria | 9-10 October Developing An Advanced ASP.NET Server Control With Rich Design-Time Goksin Bakir Yage Ltd Microsoft Regional Director, MEA."— Presentation transcript:

1 Sofia, Bulgaria | 9-10 October Developing An Advanced ASP.NET Server Control With Rich Design-Time Goksin Bakir Yage Ltd Microsoft Regional Director, MEA Goksin Bakir Yage Ltd Microsoft Regional Director, MEA

2 Sofia, Bulgaria | 9-10 October Developing ASP.NET 2.0 Server Controls Agenda Rich UI Master Pages Themes and Skins Smart Clients Scenario Real estate company web site requires rich controls to enable a variety of custom scenarios Solution PhotoViewer: Allows a user to navigate through a collection of photos for a given listing MultiList: Allows a user to view real estate listings in a geographical region We will cover Runtime: Composition, state management, callbacks, web resources, script handling, and data bound controls Design-time: Region-editing, task-based editing, painting, host services Rich UI Master Pages Themes and Skins Smart Clients Scenario Real estate company web site requires rich controls to enable a variety of custom scenarios Solution PhotoViewer: Allows a user to navigate through a collection of photos for a given listing MultiList: Allows a user to view real estate listings in a geographical region We will cover Runtime: Composition, state management, callbacks, web resources, script handling, and data bound controls Design-time: Region-editing, task-based editing, painting, host services

3 Sofia, Bulgaria | 9-10 October Master Page Basics Masters define common content and placeholders ( ) Content pages reference masters and fill placeholders with content ( ) Masters define common content and placeholders ( ) Content pages reference masters and fill placeholders with content ( ) <%@ Page MasterPage- File="Site.master" %> <%@ Page MasterPage- File="Site.master" %> Site.masterdefault.aspxhttp://.../default.aspx

4 Sofia, Bulgaria | 9-10 October Themes and Skins Mechanism for theming controls, pages, and sites by group-initializing control properties Skin = Visual attributes for control(s) Physically stored in.skin files Default skins and named skins Theme = Collection of one or more skins Physically stored in Themes subfolders Global themes and local themes Mechanism for theming controls, pages, and sites by group-initializing control properties Skin = Visual attributes for control(s) Physically stored in.skin files Default skins and named skins Theme = Collection of one or more skins Physically stored in Themes subfolders Global themes and local themes

5 Sofia, Bulgaria | 9-10 October Applying a Theme to a Page BeforeAfter

6 Sofia, Bulgaria | 9-10 October Local Themes Themes BasicBlue Smoke- AndGlass SKIN ASP.NET- ClientFiles Theme name = Subdirectory name

7 Sofia, Bulgaria | 9-10 October Global Themes Themes Shocking- Pink Autumn- Leaves SKIN vroot Theme name = Subdirectory name

8 Sofia, Bulgaria | 9-10 October Smart Client Features Offline capable Cache online data Update when connected Datasets in smart documents Intelligent deployment and update Easy non-administrator deployment Automatic updates Smart document deployment Rich / easy developer experience Offline capable Cache online data Update when connected Datasets in smart documents Intelligent deployment and update Easy non-administrator deployment Automatic updates Smart document deployment Rich / easy developer experience

9 Sofia, Bulgaria | 9-10 October Smart Client Technologies Visual Studio 2005 Rich visual designer support Integrated ClickOnce testing and deployment Visual Studio Tools for Office.NET Framework 2.0 Windows Forms 2.0 ClickOnce deployment Visual Studio 2005 Rich visual designer support Integrated ClickOnce testing and deployment Visual Studio Tools for Office.NET Framework 2.0 Windows Forms 2.0 ClickOnce deployment

10 Sofia, Bulgaria | 9-10 October Visual Studio 2005 Project templates Get up and going quickly Common application types Designers Simplifies development of UI and layout Rich User Control development Rich support for Custom Controls Project templates Get up and going quickly Common application types Designers Simplifies development of UI and layout Rich User Control development Rich support for Custom Controls

11 Sofia, Bulgaria | 9-10 October What is smart Local resources and user experience Offline capable Intelligent deployment and update Multithreaded Crash Proof Local resources and user experience Offline capable Intelligent deployment and update Multithreaded Crash Proof

12 Sofia, Bulgaria | 9-10 October

13 Photoviewer Runtime: Callbacks And Web Resources Scenario Child control will handle rendering Manage state in parent control Eliminate page flicker, update only relevant markup Deploy control as single assembly Solution StateManagedCollection simplifies state management for collection items Callbacks transfer data between client and server using XMLHTTP and JavaScript Embedded WebResources used to ease deployment and versioning Scenario Child control will handle rendering Manage state in parent control Eliminate page flicker, update only relevant markup Deploy control as single assembly Solution StateManagedCollection simplifies state management for collection items Callbacks transfer data between client and server using XMLHTTP and JavaScript Embedded WebResources used to ease deployment and versioningRaiseCallbackEventGetCallbackResult Web Server Client

14 Sofia, Bulgaria | 9-10 October Photoviewer Runtime

15 Sofia, Bulgaria | 9-10 October Photoviewer Controldesigner: Regions And Smart Tags Scenario Enhanced design-time interactivity Promote important editing operations Solution CompositeControlDesigner handles interaction with runtime control Web resources are handled by the designer host DesignerRegions describe clickable, selectable, and editable areas Mouse click responds to user input Smart Tags expose important and complex tasks Scenario Enhanced design-time interactivity Promote important editing operations Solution CompositeControlDesigner handles interaction with runtime control Web resources are handled by the designer host DesignerRegions describe clickable, selectable, and editable areas Mouse click responds to user input Smart Tags expose important and complex tasks

16 Sofia, Bulgaria | 9-10 October Photoviewer Design-Time

17 Sofia, Bulgaria | 9-10 October MultiList Runtime Scenario Data and templates define composition Control must function when ViewState is disabled Solution Extend CompositeDataBoundControl to handle creation of child controls based on data Use templates to allow user to customize rendering Store critical state in ControlState rather than ViewState Scenario Data and templates define composition Control must function when ViewState is disabled Solution Extend CompositeDataBoundControl to handle creation of child controls based on data Use templates to allow user to customize rendering Store critical state in ControlState rather than ViewState

18 Sofia, Bulgaria | 9-10 October MultiList Runtime

19 Sofia, Bulgaria | 9-10 October MultiList Design-time Scenario WYSIWYG template editing Use standard interfaces for wiring up to a data source Solution Extend DataBoundControlDesigner to offer data source picker and expose schema DesignerRegions provide custom inline editing of template content Paint graphics to go beyond HTML Scenario WYSIWYG template editing Use standard interfaces for wiring up to a data source Solution Extend DataBoundControlDesigner to offer data source picker and expose schema DesignerRegions provide custom inline editing of template content Paint graphics to go beyond HTML

20 Sofia, Bulgaria | 9-10 October MultiList Design-Time

21 Sofia, Bulgaria | 9-10 October Summary Runtime Composite controls and templates for scenario controls DataBoundControl class for data-driven content WebResources for embedded content ControlState for critical state Design-time DesignerActionLists for contextual tasks DesignerRegions for contextual editing Clicking and painting for interactive page design Auto format for common control styles Runtime Composite controls and templates for scenario controls DataBoundControl class for data-driven content WebResources for embedded content ControlState for critical state Design-time DesignerActionLists for contextual tasks DesignerRegions for contextual editing Clicking and painting for interactive page design Auto format for common control styles

22 Sofia, Bulgaria | 9-10 October Call To Action ASP.net 2.0 adds many new features for the control developer Control WebControl CompositeControlDataBoundControl CompositeDataBoundControl MultiListMultiListViewSwitcherPhotoViewer Your Control Here!

23 Sofia, Bulgaria | 9-10 October Community Resources INETA MEA ! www.ineta.org mea.ineta.org Presenter as a resource goksin@yage.com.tr ASP.NET Web Site - http://www.asp.nethttp://www.asp.net MSDN dev center - http://msdn.microsoft.com/asp.net/http://msdn.microsoft.com/asp.net/ ASP.NT Forums - http://forums.asp.net/145/ShowForum.aspx http://forums.asp.net/145/ShowForum.aspx Channel 9 tag - http://channel9.msdn.com/tags/ASP.NEThttp://channel9.msdn.com/tags/ASP.NET INETA MEA ! www.ineta.org mea.ineta.org Presenter as a resource goksin@yage.com.tr ASP.NET Web Site - http://www.asp.nethttp://www.asp.net MSDN dev center - http://msdn.microsoft.com/asp.net/http://msdn.microsoft.com/asp.net/ ASP.NT Forums - http://forums.asp.net/145/ShowForum.aspx http://forums.asp.net/145/ShowForum.aspx Channel 9 tag - http://channel9.msdn.com/tags/ASP.NEThttp://channel9.msdn.com/tags/ASP.NET

24 Sofia, Bulgaria | 9-10 October Summary Runtime Composite controls and templates for scenario controls DataBoundControl class for data-driven content WebResources for embedded content ControlState for critical state Design-time DesignerActionLists for contextual tasks DesignerRegions for contextual editing Clicking and painting for interactive page design Auto format for common control styles Runtime Composite controls and templates for scenario controls DataBoundControl class for data-driven content WebResources for embedded content ControlState for critical state Design-time DesignerActionLists for contextual tasks DesignerRegions for contextual editing Clicking and painting for interactive page design Auto format for common control styles

25 Sofia, Bulgaria | 9-10 October Please fill out the survey forms! They are the key to amazing prizes that you can get at the end of each day Thank you!

26 Sofia, Bulgaria | 9-10 October


Download ppt "Sofia, Bulgaria | 9-10 October Developing An Advanced ASP.NET Server Control With Rich Design-Time Goksin Bakir Yage Ltd Microsoft Regional Director, MEA."

Similar presentations


Ads by Google