<div class="col-lg-12 control-section" style="margin: 50px">
<div id="wrapper">
</div>
</div>
<button id="datebutton" text="Click" onclick="onClick()"> click Partial view </button>
<script type="text/javascript">
function onClick() {
var ajax = new ej.base.Ajax('/Home/PartialView1/?Person2', 'GET', true);
ajax.send().then();
ajax.onSuccess = function (data) {
$("#wrapper").html(data);
}
}
</script> |
@(Html.EJS().DropDownList("Album").DataSource((IEnumerable<object>)ViewBag.data)
.Placeholder("Selecciona").PopupHeight("200px").Render()
)
@Html.EJS().ScriptManager() |