471,092 Members | 1,009 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

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

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
2 3543
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
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.

Similar topics

5 posts views Thread by vishesh vyas | last post: by
4 posts views Thread by owingruters | last post: by
2 posts views Thread by Andy G | last post: by
3 posts views Thread by David Davis | last post: by
4 posts views Thread by disaia | last post: by
3 posts views Thread by =?Utf-8?B?VDhS?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.