更新了ASP.NET 3.5到4.0 – > Sys.WebForms.PageRequestManag
发布时间:2020-12-16 07:10:13 所属栏目:asp.Net 来源:网络整理
导读:正如标题所示,我最近将包含UpdatePanels和类似 AJAX技术的ASP.NET 3.5应用程序更新到ASP.NET 4.0.不幸的是,UpdatePanels不再工作,整页回发使它全部向南. 的Web.config文件 ?xml version="1.0"? configuration configSections section name="exceptionHandlin
正如标题所示,我最近将包含UpdatePanels和类似
AJAX技术的ASP.NET 3.5应用程序更新到ASP.NET 4.0.不幸的是,UpdatePanels不再工作,整页回发使它全部向南.
的Web.config文件 <?xml version="1.0"?> <configuration> <configSections> <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings,Microsoft.Practices.EnterpriseLibrary.ExceptionHandling"/> <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings,Microsoft.Practices.EnterpriseLibrary.Logging"/> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,Microsoft.Practices.EnterpriseLibrary.Data"/> </configSections> <system.net> <mailSettings> <smtp> <network host="localhost"/> </smtp> </mailSettings> </system.net> <system.web> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Forms"> <forms loginUrl="~/Login.aspx" name=".ASPXFORMSAUTH" defaultUrl="~/Administration/SystemEvents.aspx"/> </authentication> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically,it enables developers to configure html error pages to be displayed in place of a error stack trace. --> <customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx"> <error statusCode="401" redirect="~/Unauthorized.aspx"/> </customErrors> <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> </system.webServer> </configuration> 在Chrome中执行时出现Javascript错误: Uncaught TypeError: Object function Function() { [native code] } has no method '_registerScript' Uncaught TypeError: Cannot read property 'PageRequestManager' of undefined 有什么我可以做错的?谢谢! 解决方法
我最近遇到了麻烦,因为我正在更新一个较旧的项目,并按照上面的步骤操作,但它仍然给我同样的错误.我发现我需要更新修复它的web.config文件中的一行.
我变了: <xhtmlConformance mode="Legacy"/> 至: <xhtmlConformance mode="Transitional"/> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 支持部署到Windows Azure的论坛软件
- asp.net-mvc – MVC 4中的ReportViewer部分
- asp.net-mvc – 如何在asp.net mvc中提交下拉列表
- asp.net – 使用DataContext静态变量
- .net – 在实时服务器上是否存在PDB调试文件的任何安全问题
- Asp.net mvc验证用户登录之Forms实现详解
- asp.net-mvc – 选择在razor html.dropdownlistfor的pagelo
- asp.net-mvc – 我可以在这里使用路由约束吗?
- ASP.NET 谨用 async/await
- asp.net – UseJwtBearerAuthentication返回401
推荐文章
站长推荐
- ASP.NET Core多环境配置文件问题
- asp.net-mvc – 如何将现有的SQL Server数据库添
- asp.net – 如何在没有实体框架的MVC中使用Simpl
- asp.net – 使用带有模拟的Windows身份验证的Web
- asp.net – Javascript:为什么如果(假)?
- 如何将应用程序从经典ASP迁移到ASP.NET MVC?
- asp.net-mvc – 实现MVC 5 IAuthenticationFilte
- .net core 使用Rotativa创建PDF文档
- asp.net-mvc – Asp.Net MVC 2 – 更改PropertyV
- asp.net – 在网页中显示OLAP SQL Server?
热点阅读