protected void SendTovessel() { if (chkSendTovessel.Checked == true) { TechnicalBAL objpurch = new TechnicalBAL(); objpurch.Insert_sendToVessel(Request.QueryString["document_code"].ToString(), Request.QueryString["REQUISITION_CODE"].ToString(), 1); btnSendToVessel.Enabled = false; chkSendTovessel.Enabled = false; int sts = objpurch.Get_SendToVessel(Request.QueryString["document_code"].ToString(), Request.QueryString["REQUISITION_CODE"].ToString()); if (sts == 1 || !Request.QueryString["REQUISITION_CODE"].Contains("-O")) { chkSendTovessel.Enabled = false; btnSendToVessel.Enabled = false; } String msg = String.Format("alert('Requisition has been sent to vessel'); "); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgsentreq", msg, true); } }