HighTechTalks DotNet Forums  

caching for page with dynamical parts

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss caching for page with dynamical parts in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?U3VzaGlTZWFu?=
 
Posts: n/a

Default caching for page with dynamical parts - 08-06-2007 , 06:08 PM






Actually very basically question, but I am not sure if exist any solution.
So for example I have some page which shows info about product and info
about customer.
info about product it get from GET param – something like that
“viewitem.aspx?idproduct=123123”
but info about customer – from session. It means I have 1000 customers which
read info about this product
in a day and I need make caching of request which get info – I put in header
of page
<%@ OutputCache Duration=1000 SqlDependency="FCDB:site_guestbook"
VaryByParam=" idproduct" %>
and it is works, but if idproduct the same it take ALL page from cache and
Page_Load event doesn’t work
and this page show customer name which was CACHED, but NOT CURRENT.

The question is How cache only sql query result but not all page? Is it
passible?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.