On MVC How Do You Call a Partial View From a DropDown Change Event?

Using MVC on a DropDown, How Do You Call a Partial View?  


Who is Participating?
Bob LearnedConnect With a Mentor Commented:
That sounds like you need for the drop-down to post back, so that you can assign an action to the post-back.  That would require something like a JQuery request.  You can use the Html.BeginForm to create a <form> element, with an action that is associated with a controller method.  In the controller method, you can return a PartialViewResult.

$(document).ready(function () {
    $('form').find('select.auto-post').change(function () {

Open in new window

All Courses

From novice to tech pro — start learning today.