I have very weird problem, I'm trying to render partial view with model on my page.My controller action send html to browser (FireBug show me desired html response from server), but browser doesn't render it!
_ViewStart.cshtml
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
_Layout.cshtml
<!DOCTYPE html>
<html>
<head>
//...
</head>
<body>
<div class="container">
@Html.Partial("HeaderPartialView")
<div class="row">
<div class="col-md-3" id="LeftPane" style="border-width:3px">
@Html.Action("LeftPane", "Nav")
</div>
<div class="col-md-9" id="Content">
@RenderBody()
</div>
</div>
@Html.Partial("FooterPartialView")
</div>
</body>
</html>
Controller action invokes by javascript $.post('/Query/GetUserQuery', { jsonQuery: jsonString }); and just deserialise json into object, which I pass as model to my shared View.
public ActionResult GetUserQuery(string jsonQuery) {
//Deserialization jsonQuery -> result
return PartialView("_ShowData", result);
}
Please, help me. I had no troubles with partial views before, looks like I miss something important.