logging in or signing up Caching ASP Net Controls puneetsharma20 Download Post to : URL : Related Presentations : Share Add to Flag Embed Email Send to Blogs and Networks Add to Channel Uploaded from authorPOINT lite Insert YouTube videos in PowerPont slides with aS Desktop Copy embed code: (To copy code, click on the text box) Embed: URL: Thumbnail: WordPress Embed Customize Embed The presentation is successfully added In Your Favorites. Views: 793 Category: Entertainment License: All Rights Reserved Like it (0) Dislike it (0) Added: January 12, 2010 This Presentation is Public Favorites: 2 Presentation Description No description available. Comments Posting comment... By: prakashpatel (8 month(s) ago) send me on prakash.patel@srimca.edu.in Saving..... Post Reply Close Saving..... Edit Comment Close By: hemant8031 (20 month(s) ago) Hey plz can you send me this slide to hemant.abcdefg@gmail.com...i need it urgently.. Saving..... Post Reply Close Saving..... Edit Comment Close By: dillipbindass (22 month(s) ago) hey plzz sen me my id= dillipbindass@gmail.com quick plzzzzzzzzzz Saving..... Post Reply Close Saving..... Edit Comment Close By: welcome2me (23 month(s) ago) Very important, thx to send it to my e-mail skhaled9@hotmail.com Saving..... Post Reply Close Saving..... Edit Comment Close Premium member Presentation Transcript Slide 1: Caching ASP.Net controls Caching : Caching Improves a web application's performance Output Caching - caches the entire rendered markup of an ASP.NET web page or User Control for a specified duration <%@OutputCache Duration="60" VaryByParam="none" %> Data Caching - a programmatically-accessible, in-memory data cache for storing objects in the web server's memory Store - Cache["foo"] = bar; Retrieve - bar = Cache["foo"]; Slide 3: OutputCacheModule HTTP Module subscribes to the ResolveRequestCache and UpdateRequestCache events. ResolveRequestCache event, the module determines if the file being requested participates in output caching and, if so, there's a cache version to send back. If there's not a cached version, the page is rendered as normal UpdateRequestCache event fires, the module will cache the rendered output Post-Cache Substitutions : Post-Cache Substitutions Takes a page that uses output caching and allows to make "live" substitutions in the cached content Declaratively - specify the dynamic portion(s) of a page using Substitution controls. Create a method that will be invoked by these controls in order to get their rendered markup <%@ Page ... %><%@ OutputCache Duration="duration" VaryByParam="paramList" %>... <asp:Substitution ID="id" runat="server" MethodName="method" /> The MethodName(string) property specifies a static method in the page's code-behind class that must accept an HttpContext object and return the string to emit Slide 5: Programmatically - Response.WriteSubstitution(callback) method programmatically injects a response substitution block. The callback parameter is a delegate to a method that will be invoked to get the markup to emit Cache Configuration : Cache Configuration Many options for configuring page output caching and the cache API Web.config Cache Configuration Settings OutputCacheSection - used to configure application-scope settings enableOutputCache="false" Settings in the configuration file take precedence over cache settings in individual pages OutputCacheSettingsSection : OutputCacheSettingsSection Used to configure profiles and dependencies that can be used by individual pages <outputCacheSettings> <outputCacheProfiles> <add name="CacheProfile1" duration="60" /> </outputCacheProfiles> </outputCacheSettings> Page Cache Configuration Settings <%@ OutputCache CacheProfile=”myCacheProfile1” VaryByParam=”none” %> SqlCacheDependency : SqlCacheDependency To create a cache item dependency on a table or row in a database When a change occurs in the table or in a specific row, the item that has a dependency is invalidated and removed from the cache Dependency can be set on a table in Microsoft SQL Server 7.0, SQL Server 2000, and SQL Server 2005 Configure SQL Server to support it through utilities to configure SQL caching on SQL Server -Aspnet_regsql.exe and SqlCacheDependencyAdmin Types of Controls : Types of Controls Standard Controls Data Controls Validation Controls Login Controls Navigation Controls WebParts Controls HTML Controls User Controls ImageMap : ImageMap To create an image that contains defined hotspot regions. When a user clicks a hot spot region, the control can either generate a post back to the server or navigate to a specified URL <asp:ImageMap ID="ImageMap1" ImageUrl="~/ChicagoSkyline1.jpg" Width="300" HotSpotMode="PostBack" runat="server"> <asp:RectangleHotSpot Top="0" Bottom="225" Left="0" Right="150" AlternateText="chicago" PostBackValue="You are on left side of SearTowers" /> <asp:RectangleHotSpot Top="0" Bottom="225" Left="151" Right="300" AlternateText="chicago1" PostBackValue="You are on right side of SearTowers" /> </asp:ImageMap> BulletedList : BulletedList To display a bulleted list on your page Databinding capabilities Properties as BulletStyle, which can be set to circles, squares, numbers, roman numerals, custom images, etc. DisplayMode property you can specify that the list items be represented by standard text, HyperLinks, or LinkButtons MultiView : MultiView The MultiView control manages multiple View controls to ensure only one is visible at a time. Each View control acts as a content container ActiveViewIndex property of the MultiView control to specify which View should be visible at any particular time. Negates the need to persist data between pages, which can be troublesome in ASP.NET Data Controls - GridView : Data Controls - GridView GridView control is the successor to the v1.x DataGrid GridView control can automatically handle paging, sorting, editing or deleting data, provided its bound data source control supports these capabilities UI customization improvements - templating options Sorting : Sorting Paging AllowPaging=“true” Data source that supports the ICollection interface Slide 16: GridView control still performs most of its functions via postbacks EnableSortingAndPagingCallback property that enables the server-side sorting and paging routines to be called without a full-page postback Only the GridView control calls back to the server and gets updated while the rest of the page stays put Detailed single record view when the user clicks on a row in the grid can be achieved by DetailsView control WebParts Controls : WebParts Controls Integrated set of controls for creating Web sites that enable end users to modify the content, appearance, and behavior of Web pages directly from a browser When users modify pages and controls, the settings can be saved to retain a user's personal preferences across future browser sessions, a feature called personalization Personalize page content Personalize page layout Slide 18: Export and import controls Create connections Manage and personalize site-level settings Any ASP.NET server control or user control can behave as a web part Web Part Zones provide a way to organize parts into regions on the page The WebPartManager control manages the pages personalization state, and co-ordinates communication between parts and zones. References - http://dotnetslackers.com/articles/aspnet/UsingWebPartsInASPNet20.aspx http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/webparts/default.aspx A personalizable Web page using Web Parts : A personalizable Web page using Web Parts Slide 20: Thank You You do not have the permission to view this presentation. In order to view it, please contact the author of the presentation.
Caching ASP Net Controls puneetsharma20 Download Post to : URL : Related Presentations : Share Add to Flag Embed Email Send to Blogs and Networks Add to Channel Uploaded from authorPOINT lite Insert YouTube videos in PowerPont slides with aS Desktop Copy embed code: (To copy code, click on the text box) Embed: URL: Thumbnail: WordPress Embed Customize Embed The presentation is successfully added In Your Favorites. Views: 793 Category: Entertainment License: All Rights Reserved Like it (0) Dislike it (0) Added: January 12, 2010 This Presentation is Public Favorites: 2 Presentation Description No description available. Comments Posting comment... By: prakashpatel (8 month(s) ago) send me on prakash.patel@srimca.edu.in Saving..... Post Reply Close Saving..... Edit Comment Close By: hemant8031 (20 month(s) ago) Hey plz can you send me this slide to hemant.abcdefg@gmail.com...i need it urgently.. Saving..... Post Reply Close Saving..... Edit Comment Close By: dillipbindass (22 month(s) ago) hey plzz sen me my id= dillipbindass@gmail.com quick plzzzzzzzzzz Saving..... Post Reply Close Saving..... Edit Comment Close By: welcome2me (23 month(s) ago) Very important, thx to send it to my e-mail skhaled9@hotmail.com Saving..... Post Reply Close Saving..... Edit Comment Close Premium member Presentation Transcript Slide 1: Caching ASP.Net controls Caching : Caching Improves a web application's performance Output Caching - caches the entire rendered markup of an ASP.NET web page or User Control for a specified duration <%@OutputCache Duration="60" VaryByParam="none" %> Data Caching - a programmatically-accessible, in-memory data cache for storing objects in the web server's memory Store - Cache["foo"] = bar; Retrieve - bar = Cache["foo"]; Slide 3: OutputCacheModule HTTP Module subscribes to the ResolveRequestCache and UpdateRequestCache events. ResolveRequestCache event, the module determines if the file being requested participates in output caching and, if so, there's a cache version to send back. If there's not a cached version, the page is rendered as normal UpdateRequestCache event fires, the module will cache the rendered output Post-Cache Substitutions : Post-Cache Substitutions Takes a page that uses output caching and allows to make "live" substitutions in the cached content Declaratively - specify the dynamic portion(s) of a page using Substitution controls. Create a method that will be invoked by these controls in order to get their rendered markup <%@ Page ... %><%@ OutputCache Duration="duration" VaryByParam="paramList" %>... <asp:Substitution ID="id" runat="server" MethodName="method" /> The MethodName(string) property specifies a static method in the page's code-behind class that must accept an HttpContext object and return the string to emit Slide 5: Programmatically - Response.WriteSubstitution(callback) method programmatically injects a response substitution block. The callback parameter is a delegate to a method that will be invoked to get the markup to emit Cache Configuration : Cache Configuration Many options for configuring page output caching and the cache API Web.config Cache Configuration Settings OutputCacheSection - used to configure application-scope settings enableOutputCache="false" Settings in the configuration file take precedence over cache settings in individual pages OutputCacheSettingsSection : OutputCacheSettingsSection Used to configure profiles and dependencies that can be used by individual pages <outputCacheSettings> <outputCacheProfiles> <add name="CacheProfile1" duration="60" /> </outputCacheProfiles> </outputCacheSettings> Page Cache Configuration Settings <%@ OutputCache CacheProfile=”myCacheProfile1” VaryByParam=”none” %> SqlCacheDependency : SqlCacheDependency To create a cache item dependency on a table or row in a database When a change occurs in the table or in a specific row, the item that has a dependency is invalidated and removed from the cache Dependency can be set on a table in Microsoft SQL Server 7.0, SQL Server 2000, and SQL Server 2005 Configure SQL Server to support it through utilities to configure SQL caching on SQL Server -Aspnet_regsql.exe and SqlCacheDependencyAdmin Types of Controls : Types of Controls Standard Controls Data Controls Validation Controls Login Controls Navigation Controls WebParts Controls HTML Controls User Controls ImageMap : ImageMap To create an image that contains defined hotspot regions. When a user clicks a hot spot region, the control can either generate a post back to the server or navigate to a specified URL <asp:ImageMap ID="ImageMap1" ImageUrl="~/ChicagoSkyline1.jpg" Width="300" HotSpotMode="PostBack" runat="server"> <asp:RectangleHotSpot Top="0" Bottom="225" Left="0" Right="150" AlternateText="chicago" PostBackValue="You are on left side of SearTowers" /> <asp:RectangleHotSpot Top="0" Bottom="225" Left="151" Right="300" AlternateText="chicago1" PostBackValue="You are on right side of SearTowers" /> </asp:ImageMap> BulletedList : BulletedList To display a bulleted list on your page Databinding capabilities Properties as BulletStyle, which can be set to circles, squares, numbers, roman numerals, custom images, etc. DisplayMode property you can specify that the list items be represented by standard text, HyperLinks, or LinkButtons MultiView : MultiView The MultiView control manages multiple View controls to ensure only one is visible at a time. Each View control acts as a content container ActiveViewIndex property of the MultiView control to specify which View should be visible at any particular time. Negates the need to persist data between pages, which can be troublesome in ASP.NET Data Controls - GridView : Data Controls - GridView GridView control is the successor to the v1.x DataGrid GridView control can automatically handle paging, sorting, editing or deleting data, provided its bound data source control supports these capabilities UI customization improvements - templating options Sorting : Sorting Paging AllowPaging=“true” Data source that supports the ICollection interface Slide 16: GridView control still performs most of its functions via postbacks EnableSortingAndPagingCallback property that enables the server-side sorting and paging routines to be called without a full-page postback Only the GridView control calls back to the server and gets updated while the rest of the page stays put Detailed single record view when the user clicks on a row in the grid can be achieved by DetailsView control WebParts Controls : WebParts Controls Integrated set of controls for creating Web sites that enable end users to modify the content, appearance, and behavior of Web pages directly from a browser When users modify pages and controls, the settings can be saved to retain a user's personal preferences across future browser sessions, a feature called personalization Personalize page content Personalize page layout Slide 18: Export and import controls Create connections Manage and personalize site-level settings Any ASP.NET server control or user control can behave as a web part Web Part Zones provide a way to organize parts into regions on the page The WebPartManager control manages the pages personalization state, and co-ordinates communication between parts and zones. References - http://dotnetslackers.com/articles/aspnet/UsingWebPartsInASPNet20.aspx http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/webparts/default.aspx A personalizable Web page using Web Parts : A personalizable Web page using Web Parts Slide 20: Thank You