コード例 #1
0
    protected void BindCharterParty(int?Vessel_ID)
    {
        DataSet ds = BLL_POLOG_Register.POLOG_Get_CharterParty(Vessel_ID);

        ddlCharterParty.DataSource     = ds.Tables[0];
        ddlCharterParty.DataTextField  = "Charter_Name";
        ddlCharterParty.DataValueField = "CharterID";
        ddlCharterParty.DataBind();
        ddlCharterParty.Items.Insert(0, new ListItem("-Select-", "0"));
    }