Required field validator not working

S

SteFetS

Here is my bug

On my Webform I have

1 Panel with a textbox in it
1 Required field (outside the panel) for the textbox
1 Button (outside the panel)

The panel is set to VISIBLE=FALSE

If I click the button, the Required field validator is not working before
the post... It works when the page reload !!!

If the Panel is visible, all work fine :eek:)

Why ?

Stef
 
M

Marina

That is because if the panel is visible, no HTML is rendered for either the
panel or anything in it. So that means there is no textbox - so nothing to
validate.

You can check the HTML to see exactly what is streamed to the browser to see
this. In fact, this is a good idea when these types of issues come up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top