Pawan_Mishra:Hi
Yes , there has been some issue on the usage of validation control along with updatepanel . You can get to know more(including solution) on this from following link :-
http://blogs.msdn.com/mattgi/archive/2007/01/23/asp-net-ajax-validators.aspx
http://trailfire.com/gotchi/trailview/33378
http://stackoverflow.com/questions/124249/do-standard-asp-net-validators-work-with-ajax-and-update-panel
Thanks, but none of those seem to help. All of the articles seem to be about the problem that the validators won't update when they're inside an updatepanel. My problem is the reverse - the updatepanel won't refresh (and the validator is outside). I've also tried putting the validator and textbox inside the updatepanel, as well as inside a separate updatepanel. Also tried setting UpdateMode to Always just to see if it made a difference. Nothing worked.
Upon further review, though, I tried this example (just to see if I could get anything to work):
http://msdn.microsoft.com/en-us/library/bb398929.aspx. It worked. After slowly stripping it down to look like the original code, I discovered that my original code works fine if I put something valid in the textbox.
So, just setting CausesValidation="false" on the button made everything work.
Thanks!