On autopostback, dropdown list selected index is going back to '0' in MVC3

Posted by Sampath1750 under ASP.NET on 2/29/2012 | Points: 10 | Views : 1476 | Status : [Member] | Replies : 1
Hi all,
On autopostback, dropdown list selected index is going back to '0'. How to maintain to not go to zero in MVC3.
Thanks,
Sampath bejugama .




Responses

Posted by: Blessyjees on: 2/29/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

when you bind your dropdown list. If you bind this on !ispostpack on page load event, it will not back to '0' on postback.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Sampath1750, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response