Click here to Skip to main content
13,597,485 members
Rate this:
Please Sign up or sign in to vote.
See more:

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
    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.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
        End If

    End Sub

Can you please help me out in resolving this.

Posted 25-Apr-13 0:56am

1 solution

Rate this: bad
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.


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 | Cookies | Terms of Service
Web04-2016 | 2.8.180621.3 | Last Updated 26 Apr 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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