public void Load_AgentList() { DataTable dtcharterer = objPortCall.GetAgent_List(); ddlCharterAgent.DataSource = dtcharterer; ddlCharterAgent.DataTextField = "Supplier_Name"; ddlCharterAgent.DataValueField = "SUPPLIER_CODE"; ddlCharterAgent.DataBind(); ddlCharterAgent.Items.Insert(0, new ListItem("-Select-", "0")); DataTable dtOwnerAgent = objPortCall.GetAgent_List(); ddlOwnersAgent.DataSource = dtOwnerAgent; ddlOwnersAgent.DataTextField = "Supplier_Name"; ddlOwnersAgent.DataValueField = "SUPPLIER_CODE"; ddlOwnersAgent.DataBind(); ddlOwnersAgent.Items.Insert(0, new ListItem("-Select-", "0")); }
protected void BindAgent() { //DataSet ds = objPortCall.Get_PortCall_AgentList(UDFLib.ConvertToInteger(ViewState["Port_call_ID"])); DataTable dtcharterer = objPortCall.GetAgent_List(); ddlCharterAgent.DataSource = dtcharterer; ddlCharterAgent.DataTextField = "Supplier_Name"; ddlCharterAgent.DataValueField = "SUPPLIER_CODE"; ddlCharterAgent.DataBind(); ddlCharterAgent.Items.Insert(0, new ListItem("-Select-", "0")); DataTable dtOwnerAgent = objPortCall.GetAgent_List(); ddlOwnerAgent.DataSource = dtOwnerAgent; ddlOwnerAgent.DataTextField = "Supplier_Name"; ddlOwnerAgent.DataValueField = "SUPPLIER_CODE"; ddlOwnerAgent.DataBind(); ddlOwnerAgent.Items.Insert(0, new ListItem("-Select-", "0")); }