protected void Button1_Click(object sender, EventArgs e) { if (NewCourseName.Text != "") { try { SqlUtil.CourseCreateNewCourse(NewCourseName.Text, NewCourseSubject.SelectedValue, NewCourseDesc.Text, Request.Cookies["authusername"].Value); //once course is made, redir to add video to course page (and show some sort of message on the Video upload page to confirm course created) Response.Redirect("/UploadCourseVideo.aspx"); } catch { // error, print a warning msg on screen } } else { //notify user } }