Ajax.BeginForm +更新 IE9 中的整个页面

发布于 2024-09-26 20:14:39 字数 614 浏览 2 评论 0原文

我正在使用 MVC2 并有一个 telerik 弹出窗口,我在其中进行搜索并希望在第二个选项卡中显示搜索结果。

我的搜索表单位于第一个选项卡中,在发布时,我执行搜索并有一个包含 telerik 网格的部分视图。这在 Chrome 中运行得很好,但是当我在 IE9 中尝试时,它会在一个全新的页面上显示搜索结果。

Ajax.BeginForm("Search", "DataSearch",
               new AjaxOptions
               {
                   UpdateTargetId = "pnlSearchResults",
                   OnSuccess = "ShowSearchResults",
                   HttpMethod = "Post",
                   InsertionMode = InsertionMode.Replace,
                   LoadingElementId = "searchingProgess"
               }))

div pnlSearchResults 包含在第二个选项卡中,位于表单之外。

I'm using MVC2 and have a telerik popup window in which I'm doing a search and wanting to display the search results in a second tab.

I have my search form in the first tab, on post, I perform the search and have a partialview containing a telerik grid. This works perfectly in Chrome, but when I give it a go in IE9, it shows the search results on a brand new page.

Ajax.BeginForm("Search", "DataSearch",
               new AjaxOptions
               {
                   UpdateTargetId = "pnlSearchResults",
                   OnSuccess = "ShowSearchResults",
                   HttpMethod = "Post",
                   InsertionMode = InsertionMode.Replace,
                   LoadingElementId = "searchingProgess"
               }))

The div, pnlSearchResults is contained in the second tab and is outside of the form.

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

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

发布评论

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

评论(1

国产ˉ祖宗 2024-10-03 20:14:39

我相信这与表单内部的元素有关。我将加载 div 移到表单之外,重新加载,现在看起来工作正常。

I believe this had something to do with elements being inside the form. I moved my loading div outside the form, reloaded and it appears to be working just fine now.

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