protected void ButAdd_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 != "") { sql_object sql_obj = new sql_object(); sql_obj.MainCatAdd(GetValue,Show); main_category_query(); } }