示例#1
0
    protected void BindOwnerBankList()
    {
        DataTable dt = oCP.GetOwnerBank_List();

        ddlOwnerBank.DataSource     = dt;
        ddlOwnerBank.DataTextField  = "Account";
        ddlOwnerBank.DataValueField = "Bank_Account_ID";
        ddlOwnerBank.DataBind();
        ddlOwnerBank.Items.Insert(0, new ListItem("-Select-", "0"));
        dt.Dispose();
    }