1
Answer

MVC 4 post back should maintain selected values

Ask a question
Vishwa L

Vishwa L

11y
9k
1
Hi guys,

I want to maintain the selected values of check box and drop down list values in MVC-4 on Post back of page,

ex: I selected Drop down list which contains year, if the user selected 2012 as year on post back of page it should be selected as 2012 value, in classic asp.net we have Page.IsPostBack, is there any same way to do that in MVC 4. because on every post back i am loosing the state of controls, Please help me. 


Thanks and regards

Vishwa

Answers (1)