在父页面中使用输出缓存的控制值 [英] Using ouput cached control values in the parent page

查看:44
本文介绍了在父页面中使用输出缓存的控制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在下面有一个场景.

用一个带有一些下拉列表和文本框的用户控件,该下拉列表将从服务器获取数据并点亮大量数据.我想将此数据缓存到页面输出缓存中.另一个问题就像我需要在父页面中使用缓存的控件下拉列表的选定值和文本框的值.

我尝试了很多方法,但都无法做到,您能帮我解决这个问题吗?

这将帮助我们解决一些性能问题.

谢谢
Jais

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

推荐答案

1)您的第一个任务,页面输出缓存非常简单.如果您知道这个概念,您将能够实现.只是谷歌.或验证以下链接即可获取它.
在ASP.NET中进行缓存 [
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.


这篇关于在父页面中使用输出缓存的控制值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆