textbox in panel cannot validate

  • Thread starter Thread starter JJ_377
  • Start date Start date
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.
 
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...
 
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.
 
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...
 
Back
Top