Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145019 | Jun 2,2019 12:46 AM UTC | Jun 5,2019 11:55 AM UTC | ASP.NET MVC - EJ 2 | 5 |
![]() |
Tags: DropDownList |
<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() |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.