private void LoadProducts() { ProcessGetProducts processproducts = new ProcessGetProducts(); processproducts.Invoke(); datalistProducts.DataSource = processproducts.ResultSet; datalistProducts.DataBind(); }
private void LoadProducts() { ProcessGetProducts processproducts = new ProcessGetProducts(); try { processproducts.Invoke(); } catch { Response.Redirect("ErrorPage.aspx"); } datalistProducts.DataSource = processproducts.ResultSet; datalistProducts.DataBind(); }