473,387 Members | 1,517 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,387 software developers and data experts.

Problem with Multiple Validation Controls and one Form Tag.

I have a following screen. The login is a "user control" with validations controls in it. This side I have address book in which "name" is required field. But when I click on "add new user" the validations controls of the login also gets fired. I want that if "add new user" button is clicked it should only fire validation control assign for name field and not login validations and if I click "login" button it should fire login validation controls only and not validation control of name field. How can I do this? Any clues.

Please find attached word document for a screen shot.

Regards,

Nov 18 '05 #1
2 2102
Loop through the Validators collection of the page and disable the
unneccessary Validators.

Page.Validators[3].Enabled = false;

Once this is set that particular validator won't fire.

But the only disadvantage is that the Validator Collection can only be
accesed though int Index.

Thanks,
Jagan Mohan
MCP

"Avad" <AVad> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a following screen. The login is a "user control" with validations
controls in it. This side I have address book in which "name" is required
field. But when I click on "add new user" the validations controls of the
login also gets fired. I want that if "add new user" button is clicked it
should only fire validation control assign for name field and not login
validations and if I click "login" button it should fire login validation
controls only and not validation control of name field. How can I do this?
Any clues.

Please find attached word document for a screen shot.

Regards,
Nov 18 '05 #2
Loop through the Validators collection of the page and disable the
unneccessary Validators.

Page.Validators[3].Enabled = false;

Once this is set that particular validator won't fire.

But the only disadvantage is that the Validator Collection can only be
accesed though int Index.

Thanks,
Jagan Mohan
MCP

"Avad" <AVad> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a following screen. The login is a "user control" with validations
controls in it. This side I have address book in which "name" is required
field. But when I click on "add new user" the validations controls of the
login also gets fired. I want that if "add new user" button is clicked it
should only fire validation control assign for name field and not login
validations and if I click "login" button it should fire login validation
controls only and not validation control of name field. How can I do this?
Any clues.

Please find attached word document for a screen shot.

Regards,
Nov 18 '05 #3

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

Similar topics

0
by: Avad | last post by:
I have a following screen. The login is a "user control" with validations controls in it. This side I have address book in which "name" is required field. But when I click on "add new user" the...
0
by: Dan | last post by:
I posted a similar post regarding problems with VS.NET design mode. I fixed that problem (with much thanks to this newsgroup) but now I have a second problem. I have created a class called...
2
by: Shahar | last post by:
hi I have the following problem: I have two button, tow textboxes and two RequiredFieldValidator controls, like that: <form id="Form1" method="post" runat="server"> <asp:TextBox id="TextBox1"...
2
by: Bobby | last post by:
Hi all, I want to validate my page with ASP.NET Validator controls. It works well, but I have 2 form in one page. My problem is that, If I input form1, and I click submit, It will also validate...
1
by: Ken Varn | last post by:
If a page has multiple ValidationSummary controls, how does it distinguish which ValidationControls are associated with which ValidationSummary controls? The reason I am asking this is that I...
2
by: Tim Frawley | last post by:
Source code attached indicates my problem with validation and a button bar save button. Fill the Textbox with some text then tab off the control. The message box will display the text in the...
2
by: Darren Carter | last post by:
Hi, I have mutliple asp:Panel controls on a single page, each with a default button defined (each default button resides within its respective asp:Panel). All validation controls and buttons...
7
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is...
2
by: swethak | last post by:
hi , i write the code in .htm file. It is in cgi-bin/searches/one.htm.In that i write a form submitting and validations.But validations are not worked in that .htm file. I used the same code in my...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.