473,804 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with ASP.NET Validator Control in 2 Form

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 the form2 (that I don't input), so I can't submit the form1.
Actually this can be solve if I write javascript, but If I want to use
Server Validator,is there a way to do this?

Please help...

Thanks.
Nov 18 '05 #1
2 1187
Hello, anyone can help me??

"Bobby" <bo***********@ epselindo.com> wrote in message
news:ek******** ******@TK2MSFTN GP12.phx.gbl...
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 the form2 (that I don't input), so I can't submit the form1.
Actually this can be solve if I write javascript, but If I want to use
Server Validator,is there a way to do this?

Please help...

Thanks.

Nov 18 '05 #2
Microsoft's validators are not designed to handle multiple forms (where you
have submit buttons working with separate groups of validators). They are
fixing this shortcoming in ASP.NET 2.0 with the introduction of "validation
groups".

I found many limitations in Microsoft's validators and rewrote ASP.NET
validation to solve them. If you use my work, "Profession al Validation And
More", all of the 22 validators support validation groups right now along
with many other improvements like client-side validation on more browsers.
(Microsoft's is limited to DHTML browsers).
http://www.peterblum.com/vam/home.aspx.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlu m.com
Creator of "Profession al Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Bobby" <bo***********@ epselindo.com> wrote in message
news:OI******** ******@TK2MSFTN GP09.phx.gbl...
Hello, anyone can help me??

"Bobby" <bo***********@ epselindo.com> wrote in message
news:ek******** ******@TK2MSFTN GP12.phx.gbl...
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 the form2 (that I don't input), so I can't submit the form1.
Actually this can be solve if I write javascript, but If I want to use
Server Validator,is there a way to do this?

Please help...

Thanks.


Nov 18 '05 #3

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

Similar topics

0
2235
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These controls and validators are then added to a table for display to the user. This code did seem to work originally, but now does not amd I am stumped as to why. There have been some code changes, but not to the methods below and I have pretty much...
1
1452
by: Vinod I | last post by:
Hi Team, I made a custom validator control which is having 2 public properties. But after making dll & adding that to the ToolBox, I could not able to find these properties in Property Box. Can any body explain me where am I wrong ? Also, if I want to make this control as like other validator control, e.g. to skip the "Registering on the Page", wat should I do ?
4
9911
by: moondaddy | last post by:
Is there a asp.net validator control that validates the length of the text being entered or does everyone just write jscript for this? -- moondaddy@nospam.com
4
2445
by: Axel Dahmen | last post by:
Hi, I've got the same problem as described below. No answer found yet. Can someone please help? (I'm using .NET 1.0 on my development machine and 1.1 on my webserver. Like Susanna, I only get the error on my webserver.) TIA, Axel Dahmen --
3
1151
by: Pierre | last post by:
Hello, I have a Web Form with a text box and a required field validator attached to it. This form is installed on two different configurations explained below. Config. 1: - Windows Server 2000 (SP4) - .NET Framework 1.1 - IE 6.0 - The control works fine.
4
1212
by: Alan Silver | last post by:
Hello, If you add (say) two text boxes to a form, then add a validator with some simple rule for one of them, you can observer the following problem:- Type some erroneous value in the text box with the validator, then click on the other text box. This makes the validator's red error message appear. Now, change the invalid text to something valid, and without clicking anywhere else, click the submit button.
3
8254
by: Andy | last post by:
Hi folks, I have a customvalidator control that works properly if it isn't contained in an ASP:TABLE. But, when I place it inside an ASP:TABLE, I find that _ServerValidate doesn't get fired, even if I force the customvalidator to validate by invoking its validate() method after a button is clicked: cvCustomValidator_ServerValidate(object source, system.Web.UI.WebControls.ServerValidateEventArgs args) <== doesn't get
2
4544
by: Mike Collins | last post by:
I have a form where I create dynamic controls at runtime. With this, I am adding a dynamic required field validator to each control as needed, but the validators are not firing when I click submit. The submit button was placed at design time and its causesvalidation property is set to true. Can someone tell me if something is missing from my code? Thank you. 1. Code to add dynamic control works fine and I get the Id of the textbox...
0
1108
by: Gonza | last post by:
Hi group, i'm trying to add a customvalidator control to a custom web control. The problem is i'm getting a "Unable to find control id..." exception. Here is the code: public class CuitTextBox : WebControl { protected override void OnInit(EventArgs e) {
1
1363
by: swathichavalla | last post by:
Problem description: Clients working with an apple computer with the safari browser are experiencing problems with brokerage orders. When the client wants to enter a stock order, the order entry screen displays 31-12-2005 as date. When the client presses the OK button, it states that the entered date is wrong. When the client changes the date to 31-12-2006, the application says the date is wrong. If he uses the firefox browser he has no...
0
10568
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10074
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9138
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4292
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.