Hi,
I have a wizard in my aspx page, and i create steps programatically . There
are about 8 steps in all. The default text for StepNextButton is "Next". But
i want that only in step 4, the next button text should be changed to
something else. For example, "Continue to step 5". Is it possible? Here is
my code for generating steps:
=============== ===============
Protected Sub HitRaterWiz_Ini t(ByVal sender As Object, ByVal e As
System.EventArg s) Handles HitRaterWiz.Ini t
Dim CatAdapter As New
HitRaterTableAd apters.Question CategoriesTable Adapter()
Dim DataTable As HitRater.Questi onCategoriesDat aTable =
CatAdapter.GetD ata()
Dim row As HitRater.Questi onCategoriesRow
Dim Counter As Integer = 1
For Each row In DataTable
Dim CatStep As New WizardStep
CatStep.AllowRe turn = True
Dim CatHeading As New Literal
CatHeading.Text = "<div class=""CatHead ing"">" &
row.QuestionCat egory.ToString( ) & "</div>"
CatStep.Control s.AddAt(0, CatHeading)
CatStep.Control s.AddAt(1,
GetQuestionsTab le(row.Question CategoryID))
HitRaterWiz.Wiz ardSteps.Add(Ca tStep)
Counter += 1
Next
End Sub
=============== ===============
Thanks for help.
Rgds.
I have a wizard in my aspx page, and i create steps programatically . There
are about 8 steps in all. The default text for StepNextButton is "Next". But
i want that only in step 4, the next button text should be changed to
something else. For example, "Continue to step 5". Is it possible? Here is
my code for generating steps:
=============== ===============
Protected Sub HitRaterWiz_Ini t(ByVal sender As Object, ByVal e As
System.EventArg s) Handles HitRaterWiz.Ini t
Dim CatAdapter As New
HitRaterTableAd apters.Question CategoriesTable Adapter()
Dim DataTable As HitRater.Questi onCategoriesDat aTable =
CatAdapter.GetD ata()
Dim row As HitRater.Questi onCategoriesRow
Dim Counter As Integer = 1
For Each row In DataTable
Dim CatStep As New WizardStep
CatStep.AllowRe turn = True
Dim CatHeading As New Literal
CatHeading.Text = "<div class=""CatHead ing"">" &
row.QuestionCat egory.ToString( ) & "</div>"
CatStep.Control s.AddAt(0, CatHeading)
CatStep.Control s.AddAt(1,
GetQuestionsTab le(row.Question CategoryID))
HitRaterWiz.Wiz ardSteps.Add(Ca tStep)
Counter += 1
Next
End Sub
=============== ===============
Thanks for help.
Rgds.
Comment