protected void btnAddTitle_Click(object sender, EventArgs e) { int lessonid = Convert.ToInt32(ddllesson.SelectedValue); if (UserBL.AddTitle(txttitle.Text.Trim(), lessonid)) { show = "Add"; Response.Redirect(Request.RawUrl); } }