[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.caching

caching for page with dynamical parts

SushiSean

8/6/2007 11:08:00 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?