Another DropDownList selected item problem?

I was able to solve this problem on my own As you can see on my View I had DropDownList with name "SavingType" and it was binded to the Model.SavingType. Everything works fine except the selected value. Only thing I did was that I changed the name of the dropdownlist (and of course links to it like label for="SavingTypeList").

I was able to solve this problem on my own. As you can see on my View I had DropDownList with name "SavingType" and it was binded to the Model.SavingType. Everything works fine except the selected value.

Only thing I did was that I changed the name of the dropdownlist (and of course links to it like label for="SavingTypeList").

This issue was started from MVC 1.0 at least. Problem: when DropDownList Name has same value as name of object binded to it, selected option will be not selected in result. Solution: Name binded object different, Model.

SavingTypeList for example in your case. Renaming DDL Name is not preferred, because you may loose your binding after form submitting.

Problem: when DropDownList Name has same value as name of object binded to it, selected option will be not selected in result. Solution: Name binded object different, Model. SavingTypeList for example in your case.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions