1.問題點:使用FILEUPLOAD控件且上傳較大文件時,頁面顯示Internet Explorer 无法显示该网页
1.解決:在web.config中更改默認請求的最大字節數,如下,
<httpRuntime maxRequestLength="102400" useFullyQualifiedRedirectUrl="true" executionTimeout="6000" minFreeThreads="8" minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />
2.問題:JS與ASP.NET相互操作(刪除/增加COOKIES)
2.解決:JS document.cookie+="path=/",ASP.NET httpcookie.path="/"
重要:保證JS與ASP.NET Cookie PATH相同
3.問題:使用AJAX.NET時,頁面顯示SYS未定義
3.解決:在WEB.CONFIG中,增加如下配置項:
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
1.解決:在web.config中更改默認請求的最大字節數,如下,
<httpRuntime maxRequestLength="102400" useFullyQualifiedRedirectUrl="true" executionTimeout="6000" minFreeThreads="8" minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />
2.問題:JS與ASP.NET相互操作(刪除/增加COOKIES)
2.解決:JS document.cookie+="path=/",ASP.NET httpcookie.path="/"
重要:保證JS與ASP.NET Cookie PATH相同
3.問題:使用AJAX.NET時,頁面顯示SYS未定義
3.解決:在WEB.CONFIG中,增加如下配置項:
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
本文转自 梦在旅途 博客园博客,原文链接:http://www.cnblogs.com/zuowj/archive/2012/12/08/2808443.html ,如需转载请自行联系原作者