protected void SubDel_Click(object sender, EventArgs e) { string check = Request["hidden_text"]; int IdCatMain = Convert.ToInt32(main_category.Text); if (check == "true") { int id = Convert.ToInt32(sub_category.Text); sql_object sql_obj = new sql_object(); sql_obj.SubCatDel(id); sub_Category_query(IdCatMain); } }