0

コントローラーに次のコードがあります。

SomeController.cs

public PartialViewResult DoSomething()
{
...
List<MyItem> myList= populateList();
return PartialView(myList);
}

View.cshtml

@using (Ajax.BeginForm("DoSomething", "Some", new AjaxOptions
            {
                HttpMethod = "POST",
                InsertionMode = InsertionMode.Replace,
                UpdateTargetId = "resultFromDoSomething",
                LoadingElementId = "waitingRequest"
            }))

<div id="resultFromDoSomething"></div>

このコードは Internet Explorer 9 では問題なく動作しますが、Firefox では、resultFromDoSomethingという div を設定する代わりに、ビューを含む別のページにリダイレクトします。

ここで何か間違ったことをしていますか?

ありがとう!

4

0 に答える 0