[Solved] MVC DropdownlistFor set selected value not working?c#


Actually you can set a value in Branch_Code, which will be bound to the model as selected value. So you need to do it like this.

clsObj.Branch_Code= selectedBranCode; //You need to perform filter operation from your collection. 

0

solved MVC DropdownlistFor set selected value not working?c#