Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have a scenario below.

Have a user control with some drop down list and text boxes, the dropdown list will fetch data from server and lits huge data. I want to cache this data thorugh page output cache. The other issue is like I need to use the selected values of the cached controls dropdowns and text boxes values in the parent page.

I tried many ways but not able to do it, can you help me to solve this issue.

This will help us to resolve some performance issue.

Thanks
Jais
Posted

1 solution

1) Your first task, Page output caching is pretty straight forward. If you know the concept you will be able to achieve it. Just Google. Or verify the below link you will get it.
Caching in ASP.NET[^]

2) The second task is to have the values from all controls in cache.
Create a business object (i.e A class with properties corresponding to all these values), build the object of this class when ever required and add it to cache.
Use the cached object in the parent page or where ever required.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900