Example #1
0
 private void BindBranchDetailsList()
 {
     ddlBranchID.DataSource     = bre.BranchDetails();
     ddlBranchID.DataTextField  = "BranchCode";
     ddlBranchID.DataValueField = "BranchId";
     ddlBranchID.DataBind();
     ddlBranchID.Items.Insert(0, MudarApp.AddListItemWithDefaultValue());
 }
    private void BindProductDetails()
    {
        ddlProduct.DataSource     = set.GetProductDetails();
        ddlProduct.DataTextField  = "ProductName";
        ddlProduct.DataValueField = "ProductId";
        ddlProduct.DataBind();
        ddlProduct.Items.Insert(0, MudarApp.AddListItemWithDefaultValue());

        ddlMproduct.DataSource     = set.GetProductDetails();
        ddlMproduct.DataTextField  = "ProductName";
        ddlMproduct.DataValueField = "ProductId";
        ddlMproduct.DataBind();
        ddlMproduct.Items.Insert(0, MudarApp.AddListItemWithDefaultValue());
    }