Hello,
I have a problem. I have a datavalue field of a dropdown in a session. I want to display datatext field of same dropdown to a label
below code shows the datavalue fiels is displayed in the label which is stored in the session.
lblbank.Text = Session["CPPC_CODE"].ToString();
but I want text field of dropdown to be displayed in the label
Here is the code to bind data to dropdown:
{
DataTable dtRecord = eScroll.App_Code.eScrollController.GetRecordForGrid("select cppc_code , bank_name + ' ' + CPPC_NAME as bank_name from CPPC_MASTER_TBL order by bank_name");
ddlBank.DataSource = dtRecord;
ddlBank.DataTextField = "BANK_NAME";
ddlBank.DataValueField = "CPPC_CODE";
ddlBank.DataBind();
ddlBank.Items.Insert(0, new ListItem("---Select Bank---", "0"));
}
Can anyone help me please??/
thanks
...
Go to the complete details ...