public void Load_VesselList() { DataTable dt = objBLL.Get_VesselList(0, 0, 0, "", 1); DDLVesselFilter.DataSource = dt; DDLVesselFilter.DataTextField = "VESSEL_NAME"; DDLVesselFilter.DataValueField = "VESSEL_ID"; DDLVesselFilter.DataBind(); DDLVesselFilter.Items.Insert(0, new ListItem("-ALL-", "0")); DDLVesselFilter.SelectedIndex = 0; ddlVessel.DataSource = dt; ddlVessel.DataTextField = "VESSEL_NAME"; ddlVessel.DataValueField = "VESSEL_ID"; ddlVessel.DataBind(); ddlVessel.Items.Insert(0, new ListItem("-Select-", "0")); ddlVessel.SelectedIndex = 0; }
public void Load_VesselList() { DataTable dt = objBLL.Get_VesselList(0, 0, 0, "", 1); DDLVesselFilter.DataSource = dt; DDLVesselFilter.DataTextField = "VESSEL_NAME"; DDLVesselFilter.DataValueField = "VESSEL_ID"; DDLVesselFilter.DataBind(); ddlvessel.DataSource = dt; ddlvessel.DataTextField = "VESSEL_NAME"; ddlvessel.DataValueField = "VESSEL_ID"; ddlvessel.DataBind(); ddlvessel.Items.Insert(0, new ListItem("All Vessel", "0")); ddlCrewVessel.DataSource = dt; ddlCrewVessel.DataTextField = "VESSEL_NAME"; ddlCrewVessel.DataValueField = "VESSEL_ID"; ddlCrewVessel.DataBind(); ddlCrewVessel.Items.Insert(0, new ListItem("--Select--", "0")); }