以前运行的好好的页面,今天突然报错了,找不到原因,报错信息:'WebForm_SaveScrollPositionSubmit' is undefined 后来发现系统时间被调成2007年了,改回来以后问题消失!嘻嘻!
<pages maintainScrollPositionOnPostBack="true" enableEventValidation="false" viewStateEncryptionMode ="Never"> <controls> <add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/> </controls> </pages>
另外:'Sys' is undefined 问题的解决如下:
<httpHandlers> <add path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true"/> <!---解决AJAX 'Sys' is undefined 错误提示 --> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory"/> <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"/> <!---解决AJAX 'Sys' is undefined 错误提示 --> </httpHandlers> <httpModules> <add type="qhwins.SEO.HttpModule" name="HttpModule"/> <add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax"/> </httpModules>
加到WEB.CONFIG中即可。