protected void btnDeleteOption_Click(object sender, EventArgs e) { if (IsValid) { Option opti = new Option(); opti.ID = Convert.ToInt32(drpChooseOption.SelectedValue); OptionHandler opt = new OptionHandler(); var userId = Convert.ToInt32(Session[sessionNames.userID_Karbar]); opt.DeleteOption(opti.ID, userId); BindData(); txtOptionNewName.Text = ""; } }