Esempio n. 1
0
    protected void BindChartererList()
    {
        DataTable dt = oCP.GetSupplierCharterer_List();

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