void cmbBatchno_Load(object sender, EventArgs e) { if (ViewState["BatchNo"] != null) { DataTable dtBatchNoDtls = (DataTable)ViewState["BatchNo"]; for (int i = 0; i < dtBatchNoDtls.Rows.Count; i++) { if (cmbBatchno.Text == dtBatchNoDtls.Rows[i]["BatchNo"].ToString()) { txtExpdate.Enabled = false; txtMRP.Enabled = false; break; } else { txtExpdate.Enabled = true; txtMRP.Enabled = true; txtExpdate.Text = string.Empty; txtMRP.Text = ""; txtRate.Text = ""; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)