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

Wizard MoveTo() method

I'm using the Wizard control in the 2.0 framework. I need to perform a
validation on each of the steps of the wizard in the Finish button click
event. This scenario would occur if the user clicked the Finished
navigation link, then the Finish button, bypassing the validation that
occurs on each page.

In the Finish button's click event, I perform the validation of the previous
pages. I would like to go to the first page with invalid data using the
MoveTo() method. The code in the Finish button resembles:

If Not UserControl.IsValid Then
e.Cancel = True
Me.Wizard1.MoveTo(Me.Wizard1.WizardStep2)
Exit Sub
End If

The MoveTo() method does move to the desired step and the ActiveStepChanged
event fires. Unfortunately, after the Exit Sub line, the ActiveStepChanged
event fires again, where the ActiveStepIndex is the Finished page. Moving
the e.Cancel line after the MoveTo() doesn't have an effect.

What am I missing?

Thanks in advance.

Craig Buchanan
Aug 18 '08 #1
0 1331

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

Similar topics

0
by: Gautham Jayaraman | last post by:
Hi All, Please let me know, If anybody in the group knows how to create a new Custom Method Wizard for your class. In the Class View, for my class, I want to right click and add a my method...
3
by: Dave Hammond | last post by:
Hi All, This one is a bit bizarre. My understanding of "Access is denied" with respect to window.moveTo is that it results from a request which would move a portion of the window off screen. ...
14
by: franz | last post by:
hallo everyone, i have a popup window 500x400px centered in the middle of the screen and inside it there's a mini-photogallery. what i want is to click on a thumbnail and open in the same window a...
5
by: jman | last post by:
I have an urgent question. I have written a .Net C# windows services that has only one key purpose: to move files from the machine that is running the service to a network download server for...
5
by: AE Guy | last post by:
**I just realized I initially posted this in the wrong group, sorry to those of you who see it twice I have a windows service written in C# that WAS moving files individually. Now I am trying to...
2
by: David Lozzi | last post by:
Howdy, I have a wizard to retrieve lost passwords on my site. The first page asks for their username then they click Next. On the next click I have the validation against the database to see...
0
by: clintonG | last post by:
The Wizard is on Step5 and some TextBox validation in Step5 has to be done on the server so I've been thinking I need to use the OnActiveStepChanged event. This server-side validation has to be...
0
by: bill crawley | last post by:
Hi All, I am using a Wizard control that has 13 steps so far. On one of the Steps I may set e.cancel = true in the nextbutton click event (this happens to be when ActiveStepIndex=2). Whilst...
0
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi, When redirecting to my aspx page, I check if user is authenticated. If user is authenticated I use the Wizard's MoveTo method to skip the first step. This works as expected only I get a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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....

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.