protected void InitialPortBind() { BLL_Infra_Port objBLLPort = new BLL_Infra_Port(); DataTable dt = objBLLPort.Get_PortList_Mini(); ddlPort.DataSource = dt; ddlPort.DataTextField = "PORT_NAME"; ddlPort.DataValueField = "PORT_ID"; ddlPort.DataBind(); ddlPort.Items.Insert(0, new ListItem("-Select-", "0")); }
public void Load_PortList() { BLL_Infra_Port objBLLPort = new BLL_Infra_Port(); DataTable dt = objBLLPort.Get_PortList_Mini(); DDLPortFilter.DataSource = dt; DDLPortFilter.DataTextField = "Port_Name"; DDLPortFilter.DataValueField = "Port_ID"; DDLPortFilter.DataBind(); DDLPortFilter.Items.Insert(0, new ListItem("-ALL-", "0")); }
private void BindPorts() { try { BLL_Infra_Port objBLLPort = new BLL_Infra_Port(); DataTable dt = objBLLPort.Get_PortList_Mini(); DDLPort.DataTextField = "Port_Name"; DDLPort.DataValueField = "Port_ID"; DDLPort.DataSource = dt; DDLPort.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }
private void BindDeliveryNumber(DataTable dts) { try { var r = from d in dts.AsEnumerable() select d; DataTable dt = r.CopyToDataTable(); BLL_Infra_Port objBLLPort = new BLL_Infra_Port(); //DataTable dt = objBLLPort.Get_PortList_Mini(); DDLPort.DataTextField = "DELIVERY_CODE"; DDLPort.DataValueField = "DELIVERY_CODE"; DDLPort.DataSource = dt; DDLPort.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }