Validators inside Update Panel don’t work properly

I’m using ASP.NET AJAX in the last project I work on and I’m very happy such control as Update Panel exists. Unfortunately today I experienced problem with validators inside Update Panel.

Problem
I have a form with some fields and validators. The validators are hidden by default.When the button is clicked the error messages appear above the form. I’m using validation summary to achieve this behaviour. When you submit the form for the first time everything’s working fine. But if you try to submit second time the validators’ error messages do not appear. Nothing is submitted to the server (so this means that the validator are working) but the error messages do not appear.

Solution
I tried to fix this on my own but without any success. Searching ASP.NET forums helped me to find the solution.

You can read a discussion explaining similar problem or the solution.

You can leave me a comment if this works for you.

, ,
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Technorati
  • digg
  • Reddit
  • SphereIt
  • DotNetKicks
  • YahooMyWeb

3 Responses to “Validators inside Update Panel don't work properly”


  1. 1 Dusty Reagan Jun 12th, 2007 at 5:29 pm

    It worked for me! Thanks for the link.

  2. 2 Pritam Jul 14th, 2008 at 8:31 am

    Thanks for the code. It was really helpful. Many thanks.

  3. 3 Werner Nov 3rd, 2008 at 5:32 am

    Thanks for this, but it didn’t work for me.

Leave a Reply




Google

Blogroll


Blogroll Me!

Enter your email address:

Delivered by FeedBurner







Academics Blogs - Blog Top Sites