protected void ButEdit_Click(object sender, EventArgs e) { string check = Request["hidden_text"]; string GetValue = TextMainCat.Text; Int32 Show = (CheckShow.Checked == true ? 1 : 0); if (check == "true" && GetValue != "") { int id = Convert.ToInt32(main_category.Text); sql_object sql_obj = new sql_object(); sql_obj.MainCatUpd(id, GetValue, Show); main_category_query(); } }