How do I recreate the form prepopulated with posted data when the validation fails and the ValidationSummary is fired off. I get the validators firing but cannot get a way to prepopulate the form.
catch (Exception ex)
{
TempData["Message"] = "An Error Occured while saving the product!";
ModelStateDictionary modelDictionary = Validation.UpdateModelStateWithRuleViolation(product, ViewData.ModelState);
TempData["ModelDataDict"] = modelDictionary;
}
On error, I assign the modelState to a TempData variable which I use but how can I recreate the form with data already posted...