private void LoadCategories() { ProcessGetProductCategory processgetcategory = new ProcessGetProductCategory(); try { processgetcategory.Invoke(); } catch { Response.Redirect("../ErrorPage.aspx"); } dropdownlistCategory.DataTextField = "ProductCategoryName"; dropdownlistCategory.DataValueField = "ProductCategoryID"; dropdownlistCategory.DataSource = processgetcategory.ResultSet; dropdownlistCategory.DataBind(); }
private void LoadCategories() { ProcessGetProductCategory processGetCategory = new ProcessGetProductCategory(); try { processGetCategory.Invoke(); } catch { Response.Redirect( "../ErrorPage.aspx" ); } ddlCategory.DataTextField = "ProductCategoryName"; ddlCategory.DataValueField = "ProductCategoryId"; ddlCategory.DataSource = processGetCategory.ResultSet; ddlCategory.DataBind(); }