protected void txtreportcode_TextChanged(object sender, EventArgs e) { string Reportcode = txtreportcode.Text.ToString().Split(':')[0].Trim(); string flag = txtreportcode.Text.ToString().Split(':', '[', ']')[3].Trim(); DataTable dt2 = new DataTable(); dt2 = DCMaster.Get_Name(Reportcode, flag).Tables[0]; if (dt2.Rows.Count != 0) { if (flag == "AC") { txtreportcode.Text = Reportcode; lblacname.Text = Convert.ToString(dt2.Rows[0]["AC_NAME"]); DDLCCDD.Focus(); } else if (flag == "Cust") { txtreportcode.Text = Reportcode; lblacname.Text = Convert.ToString(dt2.Rows[0]["CustName"]); DDLCCDD.Focus(); } } else { lblacname.Text = "No such Report code"; txtreportcode.Focus(); txtreportcode.Text = ""; } }
protected void DDLCCDD_SelectedIndexChanged(object sender, EventArgs e) { if (txtbankcode.Text != "c0101" && txtbankcode.Text != "PC36") { if (DDLCCDD.SelectedItem.Text == "Cash") { btnCashEntry.Visible = true; ddlMonth.Visible = true; } else { btnCashEntry.Visible = false; ddlMonth.Visible = false; PanelPopup.Visible = false; } } // string CCDD = DDLCCDD.DataTextField; if (DDLCCDD.SelectedItem.Text == "Cash") { txtCCDDNo.Enabled = false; //txtAmt.Focus(); } else if ((DDLCCDD.SelectedItem.Text == "DD") || (DDLCCDD.SelectedItem.Text == "Cheque")) { txtCCDDNo.Enabled = true; //txtCCDDNo.Focus(); } DDLCCDD.Focus(); }
protected void DDLCCDD_SelectedIndexChanged(object sender, EventArgs e) { // string CCDD = DDLCCDD.DataTextField; if (DDLCCDD.SelectedItem.Text == "Cash") { txtCCDDNo.Enabled = false; //txtAmt.Focus(); } else if ((DDLCCDD.SelectedItem.Text == "DD") || (DDLCCDD.SelectedItem.Text == "Cheque")) { txtCCDDNo.Enabled = true; // txtCCDDNo.Focus(); } DDLCCDD.Focus(); }