title: Selected Dropdown value changes when validation fails-ASP.NET MVC
body: <p>I am using MVC 3 with ASP.NET. I have a dropdown box and getting it populated from database. I am using validation on the View. If it fails the validation, I am displaying the same view with errors being caught in ViewDate.ModelState.AddModelError.</p>
  
  <p>I am checking for the ViewData.Modelstate.IsValid property if true then execute the code else display the errors in the view.</p>
  
  <p>It is diplaying the errors in the page,  but the selected value in the drop down is getting reset when validation fails.</p>
  
  <p>How do I make sure the seleceted drop down does not change when validation fails?</p>