Ejemplo n.º 1
0
    protected void BindOwnerList()
    {
        DataTable dt = oCP.GetSupplierOwner_List();

        ddlOwner.DataSource     = dt;
        ddlOwner.DataTextField  = "Supplier_Name";
        ddlOwner.DataValueField = "Supplier_Code";
        ddlOwner.DataBind();
        ddlOwner.Items.Insert(0, new ListItem("-Select-", "0"));
        dt.Dispose();
    }