473,394 Members | 1,737 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,394 software developers and data experts.

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 1642
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, "Professional 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****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Gabriel Lozano-Morán" <ga************@no-spam.com> wrote in message
news:uZ**************@tk2msftngp13.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
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...
0
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...
1
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...
1
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...
2
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"...
4
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
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)...
4
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...
2
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
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...

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.