Ajax.BeginForm +更新 IE9 中的整个页面
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这与表单内部的元素有关。我将加载 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.