I know there are many other questions here regarding similiar situations, but I have been so far unable to find one that fixes my problem, hence this question.
I currently have a page that contains a form, and various fields (as you do) and validators. Some of the fields and validators are within an UpdatePanel as they may have to change depending on the value of a radio button.
After the form has been submitted and the page fails validation, all of the fields within the UpdatePanel that have values entered in them, lose their values completely, but any of the fields outside the panel, do not.
Can anyone shed any light on why this is happening?
I have tried enabling the view state on the UpdatePanel and each of the controls, but to no effect.
edit Some confusion perhaps. I am intending to submit the entire form. The UpdatePanel is contained within the form itself, and I want the data in the UpdatePanel to be submitted with the form. I am not talking here about validating the UpdatePanel ONLY. The reason why I suspect it is the UpdatePanel that's causing the issue is because it's only the fields within it that are losing their values.
Hope that's a bit clearer.