473,594 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabling validators in multipage

When using the tabstrip control combined with a multipage (several pageview)
there is a problem when using validators. The problem is that validation
also occurs on the validators that are not on the currently selected
pageview of the multipage. To prevent this from happening I disable all the
validators and only enable the validators on the selected page but does not
look to me like the correct way of working.

Is there a better way to do this? Is there an easier way to make sure that
validators that are NOT on the visible pageview aren't validated?

Also this is what I am trying to do. I have large page with several logical
blocks and I have changed this into one tab for each logical block. Each
logical block is now a pageview in a multipage.

Thanks

Gabriel Lozano-Morán
Nov 19 '05 #1
1 1656
If you don't post back as the tabs switch, you have to write javascript code
to disable each validator on the panels not displayed. There is a
client-side function available although its poorly documented,
EnableValidator (). You can see it in the WebUIValidation .js file.

I built a replacement to Microsoft's validators that introduces a lot of new
capabilities including smart enabling. Each of my 25 validators has the
Enabler property where you establish a rule that indicates if the validator
is enabled based on some info on the page. In this case, you would set up a
rule that determines if the TextBox is visible or not before attempting to
validate. My replacement, "Profession al Validation And More"
(http://www.peterblum.com/vam/home.aspx), supports many more browsers on the
client-side and provides all kinds of improvements for data entry web forms.

--- 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

"Gabriel Lozano-Morán" <ga************ @no-spam.com> wrote in message
news:uZ******** ******@tk2msftn gp13.phx.gbl...
When using the tabstrip control combined with a multipage (several
pageview) there is a problem when using validators. The problem is that
validation also occurs on the validators that are not on the currently
selected pageview of the multipage. To prevent this from happening I
disable all the validators and only enable the validators on the selected
page but does not look to me like the correct way of working.

Is there a better way to do this? Is there an easier way to make sure that
validators that are NOT on the visible pageview aren't validated?

Also this is what I am trying to do. I have large page with several
logical blocks and I have changed this into one tab for each logical
block. Each logical block is now a pageview in a multipage.

Thanks

Gabriel Lozano-Morán

Nov 19 '05 #2

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

Similar topics

1
2400
by: news.microsoft.com | last post by:
Hello group, My goal is to attach an image over another image. Top image should be transparent so the back image is visible through the top one. Bellow is a test code in VB.NET. You need to create a form, a button (Button1) and an Picture Box (picBox). "watermark.jpg" is any jpg image, "beispiel.tif" is a multipage TIFF image with the white background, which will turn to transparent. The most important thing here is that the TIFF image...
0
1166
by: T.H.M | last post by:
Hello I have a web form with MultiPage that contain DataGrid My HTML code in the aspx page: <iewc:multipage id="MP1" style="Z-INDEX: 101; LEFT: 225px; POSITION: . . ."/> >iewc:PageView id="processData1/"> >asp:DataGrid id="DG2" style="Z-INDEX: 110; LEFT: 699px; POSITION: absolute; TOP: 379px" unat="server"> </asp:DataGrid<
1
1541
by: szabelin | last post by:
Is it possible to dynamically add a PageView to MultiPage? TabStrip has items property, so Tab and TabSeparator can be added... how about adding PageView to MultiPage? If not possible please recommend another client-side tab control. Thank you
1
2237
by: Dan | last post by:
IE WebControls Tab/MultiPage state problem I have a IE tab/multipage on a WebForm (aspx) like this: <code> <iewc:TabStrip id="tabs" runat="server" TargetID="MultiPage1"> <iewc:Tab Text="Tab1" ID="tp Tab1"></iewc:Tab>
2
2534
by: Child | last post by:
I have a page which has a tabbstrip and a multipage. The tab strip works great, and navigates the multipage no problem. However, I have a situation where I would like to have a "hidden" multipage thats not navigated to via the tabstrip and I am running into trouble. i see that supposedly I can do this with multipage.selectedindex = myindex but that doesnt' appear to work for me. I was wondering if I could use both the tabstrip and...
4
8047
by: Sorin Sandu | last post by:
I have a form with 2 textboxes, 2 required field validators for each textbox, and 2 buttons (OK, Cancel) Is it posible for cancel button to disable required field validators ?
1
4882
by: Ira | last post by:
I was successful in creating the multipage Tif files in VB.net using the following the following code: Public Sub SaveSeveralOnePageFilesInADir(ByVal DrNm As String, ByVal resultFl As String) Dim pages As Bitmap = Nothing Dim PgCnt As Integer
4
2302
by: shaiful | last post by:
Hi. I have a simple problem with multipage. I placed Multipage control on my form, but there are only 2 pages in multipage control by default. I would like to increase more pages with multipage option. I tried to set Multipage1.value = 3, but it says Error. I am using vb 6.0. So what is the process or method? Could you please help me to give idea about this small problem? Thanks in advance, Shaiful
2
2183
by: msch.prv | last post by:
Is there a specific method to disable field validators in a user control.from within a parent page or does it require an ad hoc approach? The page attribute ValidateRequest does not seem to be available in user controls. TIA for any inputs.
0
7947
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
7880
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8374
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...
1
8010
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8242
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
6665
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
5739
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
5413
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
3868
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...

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.