Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 为什么usercontrol outputcache没有Location属性?_Asp.net_User Controls_Outputcache - Fatal编程技术网

Asp.net 为什么usercontrol outputcache没有Location属性?

Asp.net 为什么usercontrol outputcache没有Location属性?,asp.net,user-controls,outputcache,Asp.net,User Controls,Outputcache,我有一些关于OutPutCache到UserControl的问题。我是OutPutCache的新手 1、 我发现我无法设置location属性。UserControl存在于哪里? 2、 UserControl似乎会从页面继承outputcache特性。 那么,如何将no-store属性单独设置为UserControl呢? 例如:我缓存了一个新闻页面,它将每天刷新。但是我想知道最新的消息 每次都能看到。或者我只想获得登录用户名。我该怎么办 我将非常感谢你的帮助! 致以最良好的祝愿 David Pe

我有一些关于OutPutCache到UserControl的问题。我是OutPutCache的新手

1、 我发现我无法设置location属性。UserControl存在于哪里? 2、 UserControl似乎会从页面继承outputcache特性。 那么,如何将no-store属性单独设置为UserControl呢? 例如:我缓存了一个新闻页面,它将每天刷新。但是我想知道最新的消息 每次都能看到。或者我只想获得登录用户名。我该怎么办

我将非常感谢你的帮助! 致以最良好的祝愿

David Peng

您可以使用
控件,看看这篇关于的文章

由于替换控件只能获取字符串并进行渲染,因此必须将用户控件渲染为字符串并将该字符串指定给替换控件,以下是详细信息