473,386 Members | 1,766 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,386 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 3668
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
5
by: vishesh vyas | last post by:
Hi All, I am having a user control consisting of few mandatory fields. How to validate these mandatory fields on the .aspx page submission? Thanks In Advance Regards, Vishesh
2
by: Owin | last post by:
Hi all, I've created an User control. It's an extension of a textbox wich has some extra properties so that validation becomes a lot faster. The control wordks great if autopostback is on. When...
4
by: owingruters | last post by:
Hi all, I've created an User control. It's an extension of a textbox wich has some extra properties so that validation becomes a lot faster. The control wordks great if autopostback is on....
2
by: Andy G | last post by:
Quick question. I have numerous validation controls on a web form. I also have a cancel button on the web form that Response.Redirect("previouspage.aspx"), but when you click the button all of...
3
by: David Davis | last post by:
I cannot get a web user control to validation client-side using a required field validator. It only validates server side. I have a web user control in .net 2.0. I have a single text box on it....
3
by: ivanpais | last post by:
Hi, I have a Web User Control, Lets say "Foo.ascx", that contains a button "btnFoo". I have a Master Page "Bar.master", that has a label "lblBar". This label is exposed by a public property...
4
by: disaia | last post by:
I saw the C# solution: for each Control c in Page.Controls if c is WebControl --((WebControl)c).Enabled = False / true / variable But could figure out the VB syntax. The closest I got was...
3
by: =?Utf-8?B?VDhS?= | last post by:
Ok...I've been looking for an answer to this problem and can't seem to find one...Framework 1.1 mind you. I have a base class that inherits from UserControl. I have 5 and soon to be 12 user...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.