我试图这样做:
<script type="text/javascript" src="js/pages/cca.js?rev=<%= DateTime.Now.Ticks %>"></script>
页面无法加载,我得到:
Exception thrown: 'System.Threading.ThreadAbortException' in mscorlib.dll
该网站将说:
localhost redirected you too many times. ERR_TOO_MANY_REDIRECTS
我对asp.net并不熟悉,有人能指出我的错误吗?
编辑:
答案 0 :(得分:0)
我不得不将它包装在rad代码块中,我不知道为什么但Telerick是原因:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript" src="js/pages/cca.js?rev=<%= DateTime.Now.Ticks %>"></script>
</telerik:RadCodeBlock>