private void LoadProduct() { try { ProductBLL productBll=new ProductBLL(); DataTable dt = productBll.GetActiveProductList(); drpdwnProduct.DataSource = dt; drpdwnProduct.DataTextField = "ProductName"; drpdwnProduct.DataValueField = "ProductId"; drpdwnProduct.DataBind(); drpdwnProduct.Items.Insert(0, ""); //drpdwnSalesCenterOrWarehouse.SelectedIndex = 0; //drpdwnProduct.SelectedValue = LumexSessionManager.Get("UserWareHouseId").ToString(); } catch (Exception ex) { string message = ex.Message; if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; } MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");"); } }