Autopost back in mvc drop down list

前端 未结 4 864
借酒劲吻你
借酒劲吻你 2021-01-03 00:22

Requirment: I have a drop down list on my view page, displaying a list of vendors. When a vendor is selected from the dropdown, the page displays the details of selected ven

4条回答
  •  死守一世寂寞
    2021-01-03 00:39

    There is no AutoPostback=true in MVC. You will have to wire this up yourself. You can do something like this, using jQuery:

    $("#idOfMyDropDownList").change(function () {
        // Handle the change event, such as fire off an ajax request.
    });
    

提交回复
热议问题