private void BindCurrentData() { btnBack.Visible = true; btnNext.Visible = true; btnBack.InnerText = "< " + LocRM.GetString("Back"); btnNext.InnerText = LocRM.GetString("Next") + " >"; btnCancel.InnerHtml = LocRM.GetString("Cancel"); btnCancel.Attributes.Add("onclick", "DisableButtons(this);"); /* if(btnNext.Attributes["onclick"] == null) * btnNext.Attributes.Add("onclick","");*/ btnNext.Attributes["onclick"] = ""; int stepNumber = (int)ViewState["step"]; int stepCount = (int)ViewState["steps"]; if (stepNumber == 1) { btnBack.Visible = false; } if (stepNumber == stepCount) { btnNext.InnerText = LocRM.GetString("Create"); btnNext.Attributes.Add("onclick", "DisableButtons(this);"); } _wizard.SetStep(stepNumber); if (_wizard.MiddleButtonText != null) { btnNext.InnerText = _wizard.MiddleButtonText; } if (_wizard.CancelText != null) { btnCancel.InnerText = _wizard.CancelText; } if (stepNumber == stepCount + 1) { btnBack.Visible = false; btnNext.Visible = false; lblSteps.Visible = false; btnCancel.InnerText = LocRM.GetString("Close"); } lblSteps.Text = string.Format(CultureInfo.CurrentUICulture, "{0} {1} {2} {3}", LocRM.GetString("Step"), stepNumber, LocRM.GetString("of"), stepCount); topSubHeader.Text = _wizard.Subtitle; }