protected void ddlAcctNum_SelectedIndexChanged(object sender, EventArgs e) { DataTable dtable = new DataTable(); if (ddlAcctNum.SelectedIndex != 0) { dtable = FinancialTransactions.GetFundDetailsByFundId(Convert.ToInt32(ddlAcctNum.SelectedValue.ToString())); lblFundName.Text = dtable.Rows[0]["name"].ToString(); ddlFundName.SelectedValue = ddlAcctNum.SelectedValue; //if (lblFundName.Text.ToLower().Contains("hopwa")) //{ // ddlTransType.DataSource = FinancialTransactions.GetDataTableByProcName("GetLKTransHopwa"); //} //else //{ // ddlTransType.DataSource = FinancialTransactions.GetDataTableByProcName("GetLKTransNonHopwa"); //} ddlTransType.DataSource = FinancialTransactions.GetAvailableTransTypesPerProjAcct(Convert.ToInt32(hfProjId.Value), ddlAcctNum.SelectedItem.Text); ddlTransType.DataValueField = "typeid"; ddlTransType.DataTextField = "fundtype"; ddlTransType.DataBind(); if (ddlTransType.Items.Count > 1) { ddlTransType.Items.Insert(0, new ListItem("Select", "NA")); } BindUsePermit(Convert.ToInt32(hfProjId.Value)); if (ddlAcctNum.SelectedValue.ToString() == strLandUsePermit) { lblUsePermit.Visible = true; ddlUsePermit.Visible = true; } else { lblUsePermit.Visible = false; ddlUsePermit.Visible = false; } } else { ddlTransType.Items.Clear(); ddlTransType.Items.Insert(0, new ListItem("Select", "NA")); lblFundName.Text = ""; txtAmt.Text = ""; //ClearDetailSelection(); } }