Ejemplo n.º 1
0
 private void BindData()
 {
     DBLayer db = new DBLayer();
     if (!string.IsNullOrEmpty(uiDropDownListCats.SelectedValue))
         uiDataListPhotos.DataSource = db.GetAllProductByCatID(Convert.ToInt32(uiDropDownListCats.SelectedValue));
     uiDataListPhotos.DataBind();
 }
        private void BindProducts()
        {
            DBLayer db = new DBLayer();
            DataSet ds = new DataSet();
            ds = db.GetAllProductByCatID(Convert.ToInt32(Request.QueryString["cid"].ToString()));

            uiRepeaterProducts.DataSource = ds;
            uiRepeaterProducts.DataBind();
        }
Ejemplo n.º 3
0
 private void BindData()
 {
     DBLayer db = new DBLayer();
     uiGridViewProducts.DataSource = db.GetAllProductByCatID(Convert.ToInt32(uiDropDownListCats.SelectedValue));
     uiGridViewProducts.DataBind();
 }