Ajax.BeginForm +在IE9中更新整个页面(Ajax.BeginForm + Updating entire page in IE9)

编程入门 行业动态 更新时间:2024-10-26 07:38:28
Ajax.BeginForm +在IE9中更新整个页面(Ajax.BeginForm + Updating entire page in IE9)

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

我在第一个标签中有我的搜索表单,在帖子上,我执行搜索并且包含一个包含telerik网格的partialview。 这在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.

最满意答案

我相信这与元素在表单内部有关。 我将我的加载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.

更多推荐

本文发布于:2023-07-05 01:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1031239.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   BeginForm   Ajax   entire   Updating

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!