473,324 Members | 2,196 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,324 software developers and data experts.

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 1175
Hello, anyone can help me??

"Bobby" <bo***********@epselindo.com> wrote in message
news:ek**************@TK2MSFTNGP12.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, "Professional 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****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Bobby" <bo***********@epselindo.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
Hello, anyone can help me??

"Bobby" <bo***********@epselindo.com> wrote in message
news:ek**************@TK2MSFTNGP12.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
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...
1
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. ...
4
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
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...
3
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...
4
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...
3
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,...
2
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....
0
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 :...
1
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.