Example #1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            if (rblLength.SelectedIndex >= 0 && cboAudition.SelectedIndex > 0)
            {
                int auditionId = Convert.ToInt32(cboAudition.SelectedValue);

                if (DbInterfaceStudentAudition.UpdateAuditionLength(auditionId, Convert.ToInt32(rblLength.SelectedValue)))
                {
                    ClearPage();
                    showSuccessMessage("The audition length was successfully updated.");
                }
                else
                {
                    showErrorMessage("The audition length could not be updated.");
                }
            }
            else
            {
                showInfoMessage("No changes were made to the audition length.");
            }
        }