hi,
I am developing a MVC application, in one of The View I need to have a dropdownlist, where user can select account_code and the selected value need to be posted back to controller so that further processing of data takes place.
I need to populate this drop down from a table viz "Account_Master" in my database.
I tried many tutorials from net but nothing fit in my scenario.
Could you plz guide me step by step.
Thanks in advance.
Jignesh TrivediPosted Jun 12, 2014, 2:08 AM
hi,
Please refer below link to know how can you bind dropdown list in MVC
http://www.c-sharpcorner.com/UploadFile/esubal/mvc-populate-dropdown/
and refer below link to fire onchange event of drop down list in mvc
http://www.a2zmenu.com/Blogs/MVC/How-to-fill-DropdownList-control-and-SelectedIndexChanged-event-in-MVC.aspx#
hope this will help you.
Anupam SinghPosted Jun 12, 2014, 1:14 AM
follow these steps :
Hope will help. However there are many other ways to do this but this is clear and easy to understand.