UpdatePanel and Required field validator: shows error even though field filled?

This should be simple, but I am getting nowhere!

I have a simple form.  When I fill it in, the required field validator displays an error even though the field in question has a value in it.

Also, I am using an open source component (http://sourceforge.net/projects/html5asp/files/) that extends the basic field types with HTML5 features.  The telephone number field in my form uses the PhoneInput control, and when the page posts back this control loses its value, as does the two email fields.

If I remove the UpdatePanel, the validation works.

What am I not spotting??!

Thanks!
LVL 12
HairbrushAsked:
Who is Participating?
 
HairbrushConnect With a Mentor Author Commented:
This turned out to be because of a bug in the AJAX control toolkit.  If using HTML5 input controls in conjunction with the toolkit and an update panel, the javascript that performs the validation doesn't work.  See http://ajaxcontroltoolkit.codeplex.com/workitem/27041
0
 
plusone3055Commented:
need the update panel and content template outside the form


    </form>
</ContentTemplate>
    </asp:UpdatePanel>
0
 
HairbrushAuthor Commented:
That doesn't sound right to me?

If I try that, I get:

Control 'UpdatePanel1' of type 'UpdatePanel' must be placed inside a form tag with runat=server
0
 
shahprabalCommented:
Are you able to turn on enable viewstate on the custom control ? Maybe try using the update panel with a regular textbox and see if the that works. If it does then that narrows it down to the third party control. Is there any code that clears the phone input box? maybe put a breakpoint and check when/how many times its called. Also please attach the source code if you can.

Also, you probably are using the latest version of the toolkit but you may want to double check that :
http://ajaxcontroltoolkit.codeplex.com/ since their latest version was released in july.
0
 
HairbrushAuthor Commented:
Solved the problem myself.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.