protected void DDLCustomer_SelectedIndexChanged(object sender, EventArgs e) { frdate = txtFromDate.Text.Split('/')[2] + "/" + txtFromDate.Text.Split('/')[1] + "/" + txtFromDate.Text.Split('/')[0]; todate = txttoDate.Text.Split('/')[2] + "/" + txttoDate.Text.Split('/')[1] + "/" + txttoDate.Text.Split('/')[0]; tdt = Convert.ToDateTime(todate); fdt = Convert.ToDateTime(frdate); // Rptrpending.DataSource = CreditNote.GetCNNo_byCust(Convert.ToInt32(DDLCustomer.SelectedValue)); RptrCN.DataSource = CreditNote.GetCNNo_byCust(Convert.ToInt32(strFY), (DDLCustomer.SelectedValue), "All", fdt, tdt); RptrCN.DataBind(); //RptrCN2.DataSource = CreditNote.GetCNNo_byCust((DDLCustomer.SelectedValue), "Manual"); //RptrCN2.DataBind(); RptrCN.Visible = true; // RptrCN2.Visible = true; PnlPrint.Visible = false; Pnl2.Visible = true; //DataTable dt = new DataTable(); //dt = DCReturnBook.GetCustAddress((DDLCustomer.SelectedValue), "CNCustlist").Tables[0]; //if (dt.Rows.Count > 0) //{ // lblCustName.Text = dt.Rows[0]["CustName"].ToString(); // lblCustAddress.Text = dt.Rows[0]["Address"].ToString(); //} if (DDLCustomer.SelectedIndex == 0) { Pnl2.Visible = false; PnlPrint.Visible = false; } }