Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 22, 2010 08:29 PM by mitja.GTI
Aug 10, 2006 11:34 AM|LINK
Aug 14, 2006 08:03 AM|LINK
Aug 15, 2006 01:49 AM|LINK
Oct 24, 2006 06:11 PM|LINK
Just spent 4 hours on this before finding this post, thought I was going crazy! Can't stop that wizard from moving to the next step. Any other options or fixes on this?
Oct 24, 2006 10:34 PM|LINK
I understand your frustration, this would appear to be a genuine flaw in the way these asp:Wizard's work. I've continued to use the fix I've demonstrated above in a major project using these wizards across about 20 pages and it's certainly proven to be stable
and effective. I've got a tiny, lingering doubt that I'm missing something obvious, however for now I'm sticking with I've got. Aside from this flaw, I've found the use of these wizards very effective. It removes a lot stuffing around switching views and messing
around with the viewstate.
I expect if you really wanted you could create your own wizard that inherits from the standard one and work the fixes in at that level, which would avoid having to carry this patch code around for every page that you want to have the wizard on.
Oct 24, 2006 11:34 PM|LINK
This guy has a nice answer, http://forums.asp.net/thread/1385194.aspx
I used it, works great.
Dec 20, 2006 07:06 PM|LINK
Hi all, I have mucking around with this issue for too long as well. I notice that yes, validation is working but no the wizard will not stop going to the next step unless you add this code:
e.Cancel = true;
Mar 16, 2007 02:19 PM|LINK
The post above should definitely be marked as the answer. Nice solution, nheaton!
..and for those more VB-oriented:
Protected Sub AddDriverWizard_NextButtonClick(ByVal sender As Object, ByVal e As WizardNavigationEventArgs)
If Not Page.IsValid Then
e.Cancel = true
Mar 21, 2007 07:20 PM|LINK
Many thanks to nheaton for the simple and elegant solution, and to mattbug for translating it into VB for me... both are highly appreciated!
I finally got some time to get back to this issue today and plugged those few extra lines into my wizard pages. They seem to be working fine now. Server side validation once again blocks the wizard from advancing to the next page. I hope Microsoft fixes
Also, thanks to Mick Byrne for his code contribution back in August. I didn't get a chance to try his solution, but many thanks anyway.
Nov 08, 2007 10:22 PM|LINK
protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
e.Cancel = true;