473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 20 '05 #1
2 9134
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 20 '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 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: DBQueen | last post by:
I have a form with lines of controls. On some of the lines there are 3 controls (call them A,B,C); other lines have only control A. The controls have been numbered sequentially (Q20, Q21....Q76)...
6
by: Stu Carter | last post by:
Hi, I have an aspx page where some controls are initially disabled by the code-behind 'Page_Load' event. I want these controls to be dynamically enabled when the user checks a checkbox. ...
2
by: buran | last post by:
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...
0
by: buran | last post by:
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...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
2
by: Martin | last post by:
Hi, I have a page with 4 web user controls on. Each of these web user controls has some asp.net controls on that have validation events attached to them. Now because there are 4 seperate...
7
by: Phil | last post by:
on my form I have a checkbox and a tab control when the checkbox is true I wish to enable the controls on a single page of the tab control, is this possible or do I need to enable each control on...
12
by: NuB | last post by:
The validation controls are giving me a headache. here is what i'm trying to do and so far what I've tried has not worked. I need to hide my grid if the page is not valid how can i accomplish...
0
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
2
by: rn5a | last post by:
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.