Vishwa L

Vishwa L

  • NA
  • 60
  • 30.9k

MVC 4 post back should maintain selected values

Apr 8 2013 6:36 AM
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)