什么会导致 ASPNET AJAX 页面恢复到正常的 ASPX 模式? /UpdatePanel 损坏

发布于 2024-07-06 06:36:45 字数 479 浏览 8 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

眼藏柔 2024-07-13 06:36:45

如果它在本地工作,但在部署到远程服务器时无法工作,则通常表明您正在使用 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.

祁梦 2024-07-13 06:36:45

另一种选择是检查您的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文