




















自从用了HttpCompress后,网页打开速度明显快了很多,但在javascript的应用(包括Validation控件)、FreeTextBox 控件的使用中还是出现了error。下面就针对这两种error,给出解决方法。
在web.config中
<httpCompress preferredAlgorithm="gzip" compressionLevel="high">
<excludedMimeTypes>
<add type="image/jpeg"/>
<add type="image/gif"/>
<add type="text/x-component" /> <!-- 解决 FreeTextBox 出错的问题-->
</excludedMimeTypes>
<excludedPaths>
<add path="NoCompress.aspx"/>
<add path="ebResource.axd"/> <!-- 解决 javascript 出错的问题-->
</excludedPaths>
</httpCompress>
希望对大家有帮助
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。