Пример #1
0
    void bindcompany()
    {
        users us = new users();    //绑定

        drpcompany.DataSource     = us.BindGoods_company().Tables[0].DefaultView;
        drpcompany.DataTextField  = "C_name";
        drpcompany.DataValueField = "C_name";
        drpcompany.DataBind();
    }