コード例 #1
0
    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();
    }
コード例 #2
0
    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();
    }