textbox in panel cannot validate

J

JJ_377

how do I do this:
textbox is in a panel control.
the required field validator doesn't work.
I tried putting the required field validator inside the panel and it
doesn't work there either.
my validators are working for controls OUTSIDE the panels..
help please?
And, thank you.
J.
 
C

Craig Deelsnyder

how do I do this:
textbox is in a panel control.
the required field validator doesn't work.
I tried putting the required field validator inside the panel and it
doesn't work there either.
my validators are working for controls OUTSIDE the panels..
help please?
And, thank you.
J.
Hmmm, they do work inside panels...done this alot in my current project
as well. You may have to explain 'doesn't work' and show sample code...
 
J

JJ_377

Doesn't work means: on validation, the page validates, even though
there is nothing in the textbox (in the panel) for which there is an
associated required field validator.

Textboxes that are not in the panel, and also have required field
validators, do not validate if they are missing an assigned value when
the page is validated.

There is no code other than before I call a method to save the form, I
say: Page.Validate and if valid, I call the save method.

If textboxes do work inside panels, I'm missing how to do this because
they are not working inside "my" panels...and, the textboxes outside
the panels do.

Thanks for help.

J.
 
J

JJ_377

Working nicely now. Not sure why...but have made sure that the
validators are associated with the panel and with the grid layout
control therein.
Maybe just taking the night off made the difference...
 

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

Top