I have 2 texboxes and 1 needs validation. I have this setup with Html.ValidationSummary display. I would like to keep the data that has been entered on the validation post. Instead the page is refreshed and the data is lost which makes the user enter the data again. How do I prevent that without using sessions?
I have 2 texboxes and 1 needs validation. I have this setup with Html.ValidationSummary
Share
Why don’t you follow the pattern outlined in this blog post since postbacks technically don’t exist as a concept in ASP.NET MVC:
http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx