Пример #1
0
        protected void txtBatchNo_TextChanged(object sender, EventArgs e)
        {
            string         batchno  = txtBatchNo.Text;
            ProductionData proddata = new ProductionData();

            DS = proddata.GetExistingBatchNo(batchno);
            if (!Comman.Comman.IsDataSetEmpty(DS))
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Batch No. Already exists.')", true);
                txtBatchNo.Text = string.Empty;
            }
        }