Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Caching a Datalist control

Thread Tools

Caching a Datalist control

Kyong Kwak
Posts: n/a
Hey all,

wanted to know if I can cache an entire control.. this is what I have..

Webform has header, nav, footer, and Usercontrol_1. Usercontrol_1 has a
datalist and paging items ( prev, current page, next ).

I wanted to output cache for each "page" of the datalist, but I can't
seem to get it to work ( any suggestions? ). It would only cache at the
usercontrol level. so I'd get the header, nav, foot, and Usercontrol_1
but not page two of Usercontrol_1.

I want to know how I can cache multiple instances of the Usercontrol_1
for each page.

In the meanwhile I tried caching the DataList object, but when I get it
from the cache, the DataListItems don't render! any thoughts?


p.s. I put the DataList in the cache after the .DataBind() call.

Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable page caching without disabling caching of jpegs andstylesheets etc JimLad ASP .Net 3 01-21-2010 10:13 AM
Caching a Datalist control Kyong Kwak ASP .Net Web Controls 0 01-19-2005 10:25 PM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
Fragment Caching inside page caching? Troy Simpson ASP .Net 0 01-19-2004 11:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM