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

how to skip validation control

I create a (left) panel control to hold some image buttons, and a (right)
panel to hold some textboxes and corresponding validation controls. When I
press one of the button on the left panel, then the validatons takes place
on the right panel to show up the error messages. How can I skip these
validation if the user really want to leave the right panel?
Thanks.
Nov 18 '05 #1
2 1692
On Sat, 7 Aug 2004 00:36:45 +0800, Joe Au <jo***@livingfaith.org.hk> wrote:
I create a (left) panel control to hold some image buttons, and a (right)
panel to hold some textboxes and corresponding validation controls. When
I
press one of the button on the left panel, then the validatons takes
place
on the right panel to show up the error messages. How can I skip these
validation if the user really want to leave the right panel?
Thanks.


ah, this is called validator grouping, and it's coming in ASP.NET 2.0.
For now, you either have to homegrow a solution or find a third-party
control (such as Peter's validators at
http://www.peterblum.com/VAM/Home.aspx) that usually cost money.

The easiest solution is to turn off client-side validation, as I assume
this is what you're talking about, and validate on the server side
instead. Otherwise I also did this myself for a project by hacking the
Javascript functions that Microsoft uses in

C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_43 22\WebUIValidation.js

for example, to enable/disable controls myself on button clicks.

The server side validation solution, you just check things like
Page.IsValid and validatorControl.IsValid to verify if errors are really
errors...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
The problem I see with this approach is that it will cancel all validation,
not just validation for the other panel. A thought would be to make the
panels iframes. That way they are completely independant of eachother.
Although this may not work for you.

"Brad Quinn" wrote:
If you have a button that allows the user to "leave the right panel", set the
CausesValidation property on that button to false.

"Joe Au" wrote:
I create a (left) panel control to hold some image buttons, and a (right)
panel to hold some textboxes and corresponding validation controls. When I
press one of the button on the left panel, then the validatons takes place
on the right panel to show up the error messages. How can I skip these
validation if the user really want to leave the right panel?
Thanks.

Nov 18 '05 #3

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

Similar topics

4
by: Tim Meagher | last post by:
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. ...
2
by: ecomputerdelicacy | last post by:
Compact Framework SP3 (and I think also SP2 and SP1) XmlTextReader does not handle !DOCTYPE and (maybe?) rdf elements. How can I get the XmlTextReader to read these without issuing a...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
2
by: Barbara Alderton | last post by:
I setup some standard Required Field Validation controls and one Custom validation control on an ASP.NET page (within a user control) to validate text entry. I also setup a Summary Control to post...
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: 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: Jayson | last post by:
Hi guys, I am using a control(I only got the dll file) downloaded from web. Whenever a key is enter it will validate the user input. If not valid it will ignore the key being enter. I want to...
1
by: GCeaser | last post by:
------- I have also posted this to the microsoft.public.xml group but I am not sure which one it belongs in ------ OK - I have an XML file from a vendor that uses a DTD files as follows: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
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
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...

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.