I am developing a simple MVC application.
I have main view, partial view and controller.
This is my main View
@model partitalViewTest.Models.Qset
The button will load only partial view.Instead of button, You can use Ajax.ActionLink to update some empty div on the page with partial view as reponse.
Here is a demo.
@Ajax.ActionLink("Link Text",
"CheckAnswer",
new { Id='A' },
new AjaxOptions
{
UpdateTargetId="emptyDiv",
InsertionMode = InsertionMode.Replace,
HttpMethod = "GET"
})