Ejemplo n.º 1
0
    //Data binding
    private void BindData()
    {
        //Return datatable.
        DataTable dt = myBL.AdminGetRecipeComments;

        //Assign dt to new DataView object
        DataView dv = new DataView(dt);

        lbCountComments.Text = "Total Comments: " + dv.Count.ToString();

        Recipes_table.DataSource = dv;
        Recipes_table.DataBind();

        //Release allocated memory
        myBL = null;
    }
Ejemplo n.º 2
0
 //Data binding
 private void BindData()
 {
     Recipes_table.DataSource = AdminRecipeCategoryProvider.GetCategories();
     Recipes_table.DataBind();
 }