Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a @Html.DropdownList and i am populating it with data, but whenever postback occurs the selected value of the dropdown lost. How can i preserve the value of the @Html.DropdownList to preserve the value.

Kindly help to resolve the issue

regards
Posted

1 solution

 
Share this answer
 
Comments
Ahamed Azeem 12-Sep-12 3:54am    
Thanks for your reply.

I am talking about MVC dropdownlist not the traditional asp.net dropdown.

Kindly help if you can

Thanks

regards
Kuthuparakkal 12-Sep-12 3:56am    
try:
http://www.c-sharpcorner.com/uploadfile/2124ae/saving-dropdownlist-selected-value-across-postback-in-mvc/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900