![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles HitRaterWiz.Init * * * * Dim CatAdapter As New HitRaterTableAdapters.QuestionCategoriesTableAdapt er() * * * * Dim DataTable As HitRater.QuestionCategoriesDataTable = CatAdapter.GetData() * * * * Dim row As HitRater.QuestionCategoriesRow * * * * Dim Counter As Integer = 1 * * * * For Each row In DataTable * * * * * * Dim CatStep As New WizardStep * * * * * * CatStep.AllowReturn = True * * * * * * Dim CatHeading As New Literal * * * * * * CatHeading.Text = "<div class=""CatHeading"">"& row.QuestionCategory.ToString() & "</div>" * * * * * * CatStep.Controls.AddAt(0, CatHeading) * * * * * * CatStep.Controls.AddAt(1, GetQuestionsTable(row.QuestionCategoryID)) * * * * * * HitRaterWiz.WizardSteps.Add(CatStep) * * * * * * Counter += 1 * * * * Next * * End Sub ============================== Thanks for help. Rgds. |
#3
| |||
| |||
|
|
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_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles HitRaterWiz.Init Dim CatAdapter As New HitRaterTableAdapters.QuestionCategoriesTableAdapt er() Dim DataTable As HitRater.QuestionCategoriesDataTable = CatAdapter.GetData() Dim row As HitRater.QuestionCategoriesRow Dim Counter As Integer = 1 For Each row In DataTable Dim CatStep As New WizardStep CatStep.AllowReturn = True Dim CatHeading As New Literal CatHeading.Text = "<div class=""CatHeading"">" & row.QuestionCategory.ToString() & "</div>" CatStep.Controls.AddAt(0, CatHeading) CatStep.Controls.AddAt(1, GetQuestionsTable(row.QuestionCategoryID)) HitRaterWiz.WizardSteps.Add(CatStep) Counter += 1 Next End Sub ============================== Thanks for help. Rgds. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |