Solved

How to implement CANCEL button in ASP.Net wizard?

Posted on 2011-02-14
2
809 Views
Last Modified: 2012-05-11
I am trying to use CANCEL button in ASP.Net wizard. I added CANCEL button from wizard properties.
I am able to display the button on the wizard. I am trying to apply functionality in the codebehind for this button.

Protected Sub wizardPurchase_CancelButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles wizardPurchase.CancelButtonClick
            //CODE GOES HERE
      End Sub

I am getting this error when I click the button.

How do I write functionality for CANCEL button?

cancel-button.bmp
error.bmp
0
Comment
Question by:AppDevs
2 Comments
 
LVL 10

Accepted Solution

by:
John Claes earned 500 total points
ID: 34888213
Protected Sub wizardPurchase_CancelButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles wizardPurchase.CancelButtonClick
            //CODE GOES HERE
      End Sub




Should be


Protected Sub wizardPurchase_CancelButtonClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles wizardPurchase.CancelButtonClick
            //CODE GOES HERE
      End Sub

0
 

Author Closing Comment

by:AppDevs
ID: 34888341
Got it. Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Auto refresh part of an MVC5 View 7 60
Allow user to hide and show datagridview columns 4 17
SQL Exceptions 3 39
Advice in Xamarin 21 57
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now