ASP.NET的输出缓存和AJAX控件工具包 [英] ASP .Net Output Caching and Ajax Control toolkit

查看:94
本文介绍了ASP.NET的输出缓存和AJAX控件工具包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有实现输出缓存,并使用从AJAX控件工具包控制的一种特殊方式。我一直用输出缓存和说,一个标签控件的页面上得到一个JavaScript错误:ajaxtoolkit(我的组装preFIX)是不确定的。

这是我加了指令:

 <%@的OutputCache时间=3600的VaryByParam =无%GT;


解决方案

由于输出缓存不能由AJAX框架生成的脚本尚未合并(希望在未来的版本有些类似的行为将可用的穿越手指的),其它类型的优化方法的具有像更换的ScriptManager为ToolScriptManager作出。

http://blog.creonfx.com/performance/howto-optimize-rendering-speed-of-aspnet-ajax-websites

I'd like to know if there's a special way of implementing output caching and using a control from the ajax control toolkit. I keep getting a javascript error on a page with output caching and a tab control that says: ajaxtoolkit (my assembly prefix) is undefined.

This is the directive I added:

<%@ OutputCache Duration="3600" VaryByParam="none" %>

解决方案

Since the output caching cannot be combined with the generated scripts by the AJAX framework yet (hopefully in a future version some similar behavior will be available crossing fingers), other type of optimization approach has to be made like replacing the ScriptManager for the ToolScriptManager.

http://blog.creonfx.com/performance/howto-optimize-rendering-speed-of-aspnet-ajax-websites

这篇关于ASP.NET的输出缓存和AJAX控件工具包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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