什么会导致 ASPNET AJAX 页面恢复到正常的 ASPX 模式? /UpdatePanel 损坏
我正在使用 VS 2008 和一个非常简单的 UpdatePanel 场景。 但我无法让 UpdatePanel 工作,并且似乎无法找出为什么
我实际上恢复到一个非常简单的示例来验证它不是我的代码: http://ajax.net-tutorials.com/controls/updatepanel-control/< /a>
在此示例中,我单击任一按钮,两个文本链接都会更新。
我没有收到任何错误,该页面的行为就像普通的 ASPX 页面一样。 我需要检查哪些事情。 我已经在谷歌上搜索了一个小时,但没有找到我需要的东西。
编辑:适用于 Visual Studio Web 服务器,但不适用于 IIS
I am using VS 2008 with a very simple UpdatePanel scenario.
But i cannot get UpdatePanel to work and cant seem to find out why
I have in fact reverted to a very simple example to validate it is not my code:
http://ajax.net-tutorials.com/controls/updatepanel-control/
In this example I click on either button and both text links update.
I dont get any errors, the page just behaves like a normal ASPX page.
What things do i need to check. I've been googling this for an hour and not found what I need.
Edit: Works in Visual Studio web server but not in IIS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果它在本地工作,但在部署到远程服务器时无法工作,则通常表明您正在使用 ASP.NET 2.0 并且远程服务器上未安装 ASP.NET AJAX 扩展。
如果您对服务器有管理控制权,则可以在此处下载安装程序:http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
如果是网页主持人,告诉他们要一起行动。
If it's working locally, but not when deployed to a remote server, that usually indicates that you're using ASP.NET 2.0 and the ASP.NET AJAX extensions aren't installed on the remote server.
If it's a server you have administrative control over, you can download the installer here: http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
If it's a web host, tell them to get their act together.
另一种选择是检查您的 web.config。 例如,您可以从 Visual Studio 创建一个新的支持 Ajax 的 ASP.NET 网站。 这将生成正确的 web.config。 从现有的 web.config 中复制所有非 ajax 部分,然后就完成了。 这对我有用。
-埃杜德
Another option would be to check your web.config. You could for example create an new Ajax enabled ASP.NET website from Visual Studio. This will generate a correct web.config. Copy over all non-ajax sections from your existing web.config and you're set. This worked for me.
-Edoode