FormView 插入模式:e.Values 未填充,除非已填充

发布于 2024-12-29 00:54:05 字数 247 浏览 3 评论 0原文

同一个 Web 项目在 Framework 2.0 和 Framework 4.0 下的行为有所不同。当 ItemInserting 事件触发时,当站点在具有 Framework 2.0 的 IIS 上运行时,e.Values 为空。

当使用 Framework 4 在 VS 2010 中托管的网站上触发 ItemInserting 事件时,e.Values 是完美的。

有什么想法吗?

比尔·

辛辛那提,俄亥俄州

The same web project behaves differently under Framework 2.0 and Framework 4.0. When the ItemInserting event fires, e.Values is empty when the site runs on IIS with Framework 2.0.

When the ItemInserting event fires with the site hosted in VS 2010 using Framework 4, then e.Values is perfect.

Any thoughts?

Bill

Cincinnati, OH

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

染墨丶若流云 2025-01-05 00:54:05

服务器已升级到 Framework 4,现在一切正常,无需更改代码。

我在网上做了一些研究,框架 2 中有一个“功能”会导致这种行为。

The server was upgrade to Framework 4 and it all works now, with no code changes.

I did some research online, there is a 'feature' in Framework 2 that causes this behavior.

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