CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/21/2008 5:54:39 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 45 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
info@learnbarte
Asp.Net User
output cache a master page control1/21/2008 5:54:39 AM

0/0

it seems as if the directive <%@OutputCache is not allowed in a master page - so we'd have to put this directive on every page - is there a better way to cache a dropdownlist for all pages of the site?

stefan.sedich
Asp.Net User
Re: output cache a master page control1/21/2008 7:41:45 AM

0/0

If it is done dropdown list over the site add the Shared="true" to the controls output cache directive, this will share the one control on all pages.


Thanks
Stefan


--------------------
http://weblogs.asp.net/stefansedich
info@learnbarte
Asp.Net User
Re: output cache a master page control1/21/2008 2:56:48 PM

0/0

when i added the output cache and told it to cache a dropdownlist from the master page - i ran a sql trace and the stored proc still seems to be getting called - as if the output cache directive does not know about the dropdownlist on the master page - will that work - or is it output cache for that page controls only?

stefan.sedich
Asp.Net User
Re: output cache a master page control1/21/2008 10:33:35 PM

0/0

Is the dropdown list in a usercontrol with an output cache directive set? Can you show me an example.

Thanks
Stefan


--------------------
http://weblogs.asp.net/stefansedich
Amanda Wang - M
Asp.Net User
Re: output cache a master page control1/23/2008 7:17:15 AM

0/0

Hi,

This Declaratively controls the output caching policies of an ASP.NET page or a user control contained in a page. it cannot used on the master page, but can do it in the content page.

if you want to cache a dropdownlist fo all the pages of the site, you can put the dropdownllist in a usercontrol,  and declaratively  outputcache in the usercontrol.

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Pro ASP.NET for SQL Server: High Performance Data Access for Web Developers Authors: Brennan Stehling, Pages: 408, Published: 2007
Beginning ASP.NET 1.1 with VB.NET 2003 Authors: Chris Ullman, John Kauffman, Chris Hart, David Sussman, Pages: 888, Published: 2003
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. LeBlond, Pages: 989, Published: 2005
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
asp.net interview in questions and answers Authors: J. Rajaram, Pages: 167, Published: 2006

Web:
Output Cache With Usercontrol on Masterpage and Multiple ... Mar 17, 2008 ... Had an issue today where I had a masterpage which was inherited from 2 pages. On the masterpage I had a control which is using output cache ...
Outputcache - How to not cache Master Page - SitePoint Forums NET plays a trick on you: A master page is in reality a top-level control on the content pages. When you use output caching on a content ...
output cache a master page control - ASP.NET Forums Re: output cache a master page control. 01-21-2008, 2:41 AM. Contact ... Re: output cache a master page control. 01-21-2008, 9:56 AM ...
ASP.NET - Output Cache on Master Page Every content page that uses the master page needs output caching enabled, ... ( Note that the above code assumes you add a Label control with ID of Label1 ...
Asp.Net 2.0 Page Directives includes @Page directive, @Control ... @Master 3. @Control 4. @Register 5. @Reference 6. @PreviousPageType 7. @ OutputCache 8. @Import 9. @Implements 10. @Assembly 11. @MasterType @Page Directive ...
Configure page output cache settings - SharePoint Server ... The amount of time required to render the page is reduced. The page output cache can improve server performance because it reduces server control activities ...
How to cache calendar lookup in master page : VB .NET NET web site based on a master page. One element of the master page is a ... Page Level Output Caching 2. Fragment Caching, User Control Output Caching ...
Output Caching and Cache Profiles While a page is cached by the output cache, subsequent requests for that .... using a control or doing substitution programmatically; in a master page or ...
Response.Redirect and Output Caching Trouble You also won’t get the full benefit of caching since some of the control tree still needs to be processed, and some parts of the page such as the MasterPage ...
Using the OutputCache Directive (VB.net) : OutputCache « Page ... 14. User Control and Master Page. 15. Validation by Control ... <%@ OutputCache Duration=30 VaryByParam=none%>




Search This Site:










portal reverts to admin skin randomly!

databinding property for textbox control

visual web developer 2008 data connection problem

msoft killing vb.net?

classbrowser for 3.0.4

security context for cache item expiration callback

getting "a critical error has occurred." with new custom module

'catastrophic failure' using aspnetwindowstokenroleprovider

recent worm patch killed dnn i'm guessing

run cgi application under integrated windows environment in iis 6.0

sponsers

general network error page

how to creat new page ,database and conection in clubstarterkit?

cls-compliant web controls?

cannot load type dotnetnuke.global

styling solpartmenu

skinning problems

what about rule based security?

problem with isonline property

converting treeview

hiding asp.net codebehind file's code from web hoster.

rsa problem

adding javascript in content page

help with tree view / site map

run a console exe from webpage

launching project in debug mode on vs2008 leaves ie hanging

how avoid to create/delete file within codebehind file

membership login

i need another (in addition to solpart) menu system

login loop

 
All Times Are GMT