Пример #1
0
        protected void CancelButton_Click(object sender, EventArgs e)
        {
            /*BranchNameDropDownList.SelectedValue = "";
            *  BranchHeadDropDownList.SelectedValue = "";
            *  MaleRadioButton.Checked = false;
            *  FemaleRadioButton.Checked = false;
            *  OtherRadioButton.Checked = false;
            *  StateDropDownList.SelectedValue = "";
            *  CityDropDownList.SelectedValue = "";
            *  BranchAddressTextBox.Text = "";
            *  DateofBranchRegistrationTextBox.Text = "";
            *  BranchCodeDropDownList.SelectedValue = "";*/


            BranchNameDropDownList.ClearSelection();
            BranchHeadDropDownList.ClearSelection();
            MaleRadioButton.Checked   = false;
            FemaleRadioButton.Checked = false;
            OtherRadioButton.Checked  = false;
            StateDropDownList.ClearSelection();
            CityDropDownList.ClearSelection();
            BranchAddressTextBox.Text            = " ";
            DateofBranchRegistrationTextBox.Text = "";
            BranchCodeDropDownList.ClearSelection();
        }
Пример #2
0
        protected void ResetButton_Click(object sender, EventArgs e)
        {
            NameTextBox.Text = " ";
            CellTextBox.Text = " ";

            StateDropDownList.ClearSelection();
            AgeUpdown.Text       = " ";
            MaleButton.Checked   = false;
            FemaleButton.Checked = false;
            MailTextBox.Text     = " ";
        }