简体   繁体   English

将我的 ASP.NET 应用程序移动到 Windows 2008 服务器,现在 DropDownList SelectedIndexChanged 事件不会触发

[英]Moved my ASP.NET app to a Windows 2008 server, now DropDownList SelectedIndexChanged events don't fire

Existing ASP.NET 2.0 app,currently deployed on a Windows Server 2003 machine.现有的 ASP.NET 2.0 应用程序,当前部署在 Windows Server 2003 机器上。

Testing moving it to a new WS 2008 box.测试将其移至新的 WS 2008 盒子。 App loads fine, other behavior seems fine, but I'm not getting OnSelectedIndexChanged events from my DropDownLists.应用程序加载正常,其他行为似乎正常,但我没有从我的 DropDownLists 获得 OnSelectedIndexChanged 事件。

I guess I could add command buttons and run the code in the button click event based on the Item selected in the dropdown but that seems kinda clunky.我想我可以添加命令按钮并根据下拉菜单中选择的项目在按钮单击事件中运行代码,但这似乎有点笨拙。

Any thoughts?有什么想法吗?

EDIT- The controls are stand-alone on the form.编辑 - 控件在表单上是独立的。 Not part of a datagrid/gridview or any other container control.不属于 datagrid/gridview 或任何其他容器控件。

<asp:DropDownList ID="ddlOCA" runat="Server" OnSelectedIndexChanged="ddlOCA_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>

EDIT 2 - This Windows 2008 server is 64 bit, whereas the other server where I do get the events is 32 bit.编辑 2 - 这个 Windows 2008 服务器是 64 位的,而我得到事件的另一台服务器是 32 位的。

EDIT 3 - On the WS 2008 machine, there are also several that no longer fire (collaps/expand).编辑 3 - 在 WS 2008 机器上,还有几个不再触发(折叠/展开)。 Sigh.叹。

A few ideas:一些想法:

  1. Though this seems like a long shot, are you missing an IIS header that is forcing IE8 to run in compatibility mode?虽然这看起来很长,但您是否缺少强制 IE8 在兼容模式下运行的IIS header
  2. Have you installed ASP.NET v2.0 (I can't remember if this is pre-installed or not)?您是否安装了 ASP.NET v2.0(我不记得这是不是预装的)? Make sure you check carefully as some of the libraries will come with ASP.NET v3.5 but I don't believe that gives you everything.请务必仔细检查,因为 ASP.NET v3.5 将附带一些库,但我不相信这会给你一切。
  3. Does the user running the app is IIS have the necessary security rights?运行应用程序的用户是 IIS 是否具有必要的安全权限? You might want to run aspnet_regiis with the -ga option if you aren't sure (this won't hurt anything if you run it a second time).如果您不确定,您可能希望使用 -ga 选项运行 aspnet_regiis(如果您再次运行它,这不会有任何影响)。

This is an intranet app.这是一个内网应用程序。 Added the site to the trusted sites for the Local Intranet in IE.将站点添加到 IE 中本地 Intranet 的受信任站点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM