By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,101 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,101 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
"buran" <bu***@buran.com> wrote in message
news:u3**************@TK2MSFTNGP11.phx.gbl...
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

Nov 17 '05 #2

P: n/a
Thanks Mr. Gengo, could you please give me sample code?

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
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
"buran" <bu***@buran.com> wrote in message
news:u3**************@TK2MSFTNGP11.phx.gbl...
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


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.