473,657 Members | 2,316 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1705
On Sat, 7 Aug 2004 00:36:45 +0800, Joe Au <jo***@livingfa ith.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\wwwr oot\aspnet_clie nt\system_web\1 _1_4322\WebUIVa lidation.js

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

The server side validation solution, you just check things like
Page.IsValid and validatorContro l.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
CausesValidatio n 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
2610
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. How can I use both? Thank you, Tim Meagher
2
3655
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 NotSupportedException? Or at least to get past these elements (and nested elements) with an Skip()? I've tried setting xtr.XmlResolver = null; but it doesn't change the functionality. I'm still getting the exception. In a recent MSDN MVP Chat, I was pointed...
14
6291
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) show the error message next to the control. For example, if the text field is empty with RequiredField Validator control, it can show the value in ControlToValidate property in two ways as I mentioned. Please advise. Thanks!
2
3995
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 IIS Server of my Workstation (Win XP) with a text box, button and required field validator, this works fine. If I create the same page on the IIS6 Windows 2003 Server the validation control doesn't stop the post. I've tried different browsers and...
2
3724
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 all the messages to a message box (ShowMessageBox=true). The required field validation error messages show up in the summary just fine but I can't get the custom validation message to show up if invalid. So far I have the summary control...
9
2219
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) in page_load, or elsewhere, that says page.validate, no control says "causesvalidation=true", and the AutoEventWireup is set to false. So I would think that the control's server event function would NOT execute, but it does execute right after...
2
6702
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 textbox from the Validating event. Now put the focus back on the textbox click the button bar button. Nothing happens. The form causes validation is true, so is the button bar and the control.
2
1987
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 skip that validation handler. How do I do that? Thank you!
1
3967
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: <!DOCTYPE metis PUBLIC "-//METIS/METIS XML 1.2//EN" "http://xml.metis.no/metis12.dtd"> The problem is - currently and periodically - the vendor takes the dtd file offline. Thus, when I am trying to open the XML document in
0
8411
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
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
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8613
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
7351
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...
0
4173
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
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2740
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
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.