how to enable/disable validation controls in the web user control and main page...

  • Thread starter Thread starter buran
  • Start date Start date
B

buran

Dear ASP.NET Programmers,

I have a web user control (a search menu) which has 2 validation controls
(one for input and another for the search criterion). I am including this
search user control in ever page in my application. In pages with validation
controls, both the validation controls in the web user control and the
normal form page are both enabled and I would like to know how to seperate
them? I want to the 2 validation controls to be validated when I make a
search and when I am fiiling a form, only the val. controls of the form
should be enabled, and not the ones in the search user control. Pleaaseee
help me...

Buran
 
Buran,

The validation controls html code includes an enabled parameter. Using
javascript you should be able to enable or disable each set of controls
depending on which submit button is clicked.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
Back
Top