void BindSalesOrder() { odlSalesOrder = new Store.SalesOrder.BusinessLogic.SalesOrder(); try { objSalesOrderList = odlSalesOrder.GetAllSalesOrderList(0, 0, ""); if (objSalesOrderList != null) { ddlSalesOrderID.DataSource = objSalesOrderList; ddlSalesOrderID.DataValueField = "SalesOrderID"; ddlSalesOrderID.DataBind(); } else { ddlSalesOrderID.DataSource = null; ddlSalesOrderID.DataBind(); } } catch (Exception ex) { } finally { odlSalesOrder = null; objSalesOrderList = null; } }
void BindSalesOrder() { oblSalesOrder = new Store.SalesOrder.BusinessLogic.SalesOrder(); try { objSalesList = oblSalesOrder.GetAllSalesOrderList(0, 0, ""); if (objSalesList != null) { gvSOrder.DataSource = objSalesList; gvSOrder.DataBind(); } else { gvSOrder.DataSource = null; gvSOrder.DataBind(); } } catch (Exception ex) { throw ex; } finally { oblSalesOrder = null; objSalesOrderList = null; } }