protected void btnpost_Click(object sender, EventArgs e) { cn.connect(); string NOTIFICATION2; //NOTIFICATION = txtntf; string str = cn.NOTIFICATION2(txtntf.Text); if (str == "1") { MessageBox.Show("successfully posted"); } else { MessageBox.Show("NOT posted"); } }