Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Can we add a cancel button inside an asp.net wizard control?

Can we add a cancel button inside an asp.net wizard control?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meeram395
    wrote on last edited by
    #1

    Is it possible to add a cancel button inside a wizard control? Even though I googled it, I didn't receive anything usefully. Can anybody provide any links or articles to this?

    Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

    R 1 Reply Last reply
    0
    • M meeram395

      Is it possible to add a cancel button inside a wizard control? Even though I googled it, I didn't receive anything usefully. Can anybody provide any links or articles to this?

      Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

      R Offline
      R Offline
      r a m e s h
      wrote on last edited by
      #2

      Set the DisplayCancelButton property to true.

      M 1 Reply Last reply
      0
      • R r a m e s h

        Set the DisplayCancelButton property to true.

        M Offline
        M Offline
        meeram395
        wrote on last edited by
        #3

        I tried that. But still not displaying that button. Following is my html code: <asp:Wizard ID="CreateDocumentWizard" runat="server" ActiveStepIndex="0" BorderWidth="0px" DisplaySideBar="False" OnPreviousButtonClick = "CreateDocumentWizard_PreviousButtonClick" onnextbuttonclick="CreateDocumentWizard_NextButtonClick" onfinishbuttonclick="CreateDocumentWizard_FinishButtonClick" onactivestepchanged="CreateDocumentWizard_ActiveStepChanged" DisplayCancelButton="true" > Am I do something wrong here? Or should I do something else? Please help.

        Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

        R 1 Reply Last reply
        0
        • M meeram395

          I tried that. But still not displaying that button. Following is my html code: <asp:Wizard ID="CreateDocumentWizard" runat="server" ActiveStepIndex="0" BorderWidth="0px" DisplaySideBar="False" OnPreviousButtonClick = "CreateDocumentWizard_PreviousButtonClick" onnextbuttonclick="CreateDocumentWizard_NextButtonClick" onfinishbuttonclick="CreateDocumentWizard_FinishButtonClick" onactivestepchanged="CreateDocumentWizard_ActiveStepChanged" DisplayCancelButton="true" > Am I do something wrong here? Or should I do something else? Please help.

          Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

          R Offline
          R Offline
          r a m e s h
          wrote on last edited by
          #4

          Have you added WizardSteps to your wizard control. The Cancel button is displayed for me.

          A M 2 Replies Last reply
          0
          • R r a m e s h

            Have you added WizardSteps to your wizard control. The Cancel button is displayed for me.

            A Offline
            A Offline
            Abdulhafeezo
            wrote on last edited by
            #5

            Yes u can.

            R 1 Reply Last reply
            0
            • A Abdulhafeezo

              Yes u can.

              R Offline
              R Offline
              r a m e s h
              wrote on last edited by
              #6

              Is this reply for me or the person who posted the question?

              1 Reply Last reply
              0
              • R r a m e s h

                Have you added WizardSteps to your wizard control. The Cancel button is displayed for me.

                M Offline
                M Offline
                meeram395
                wrote on last edited by
                #7

                Thanks a lot for your help in the first instance. I think I got it. I have added Wizard steps to the control. and also added start and step navigation template as follows: <StartNavigationTemplate> <asp:Button ID = "StartNextButton" runat="server" CommandName="MoveNext" Text="Next" /> </StartNavigationTemplate> <StepNavigationTemplate> <asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious" Text="Previous" /> <asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next" /> <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" /> </StepNavigationTemplate> I think if I put cancel button again in start navigation template, then it will also appear in first tab. But I feel the code is repeating. Is this the correct way to display the cancel button? Please suggest. Thanks again!!

                Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups