protected void m_btnBack_Click(object sender, EventArgs e) { panSteps[m_currentStep--].Visible = false; panSteps[m_currentStep].Visible = true; UpdateStepLabel(); // Disable the back button if on the first step. m_btnBack.Enabled = (m_currentStep > 0); m_btnNext.Text = m_nextText; }