Click here to Skip to main content
12,633,764 members (32,766 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
Hi,

I am facing a issue while dealing with wizard control. Initially i add a list of wizardstep. On page_init i removed one step and based on certain criteria i need to add that step again. It is getting added but on postback it is getting removed.

Here is the code:

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        Wizard1.WizardSteps.Remove(Wizard1.WizardSteps(4))
    End Sub



Private Sub ddlCountry_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlCountry.SelectedIndexChanged
        Dim ddlItem As DropDownList = sender
        If ddlItem.SelectedValue = "IN" Then
            ddlState.Items.Clear()
            ddlState.Items.Add(New ListItem("Andhra Pradesh", "AP"))
            ddlState.Items.Add(New ListItem("Karnataka", "KN"))
            ddlState.Items.Add(New ListItem("Tamil Nadu", "TN"))
            WizardStep4.StepType = WizardStepType.Step
            WizardStep5.StepType = WizardStepType.Finish
            Wizard1.WizardSteps.Add(WizardStep5)
        End If

    End Sub



Can you please help me out in resolving this.

Regards
Govardhan
Posted 25-Apr-13 1:56am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Wizard and Multiview didnt provide a solution. So I went with ajaxtab controller. It went fine. I got the solution.

Thanks
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.161208.2 | Last Updated 26 Apr 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100