Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            EComDatasetTableAdapters.DataTable1TableAdapter adap1 = new EComDatasetTableAdapters.DataTable1TableAdapter();
            EComDataset.DataTable1DataTable tab1 = adap1.GetProducts();

            rpProducts.DataSource = tab1;
            rpProducts.DataBind();
        }
Esempio n. 2
0
        public void ShowProducts()
        {
            EComDatasetTableAdapters.DataTable1TableAdapter adap1 = new EComDatasetTableAdapters.DataTable1TableAdapter();
            EComDataset.DataTable1DataTable tab1 = adap1.GetProducts();

            rpProducts.DataSource = tab1;
            rpProducts.DataBind();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     EComDatasetTableAdapters.DataTable1TableAdapter adap = new EComDatasetTableAdapters.DataTable1TableAdapter();
     EComDataset.DataTable1DataTable dt = adap.GetProductByID(int.Parse(Request.QueryString["id"]));
     if (dt.Rows.Count > 0)
     {
         EComDataset.DataTable1Row dr = (EComDataset.DataTable1Row)dt.Rows[0];
         imgProduct.ImageUrl = dr.ImagePath;
         lblProdctName.Text  = dr.ProductName;
         lblProductDesc.Text = dr.Description;
         lblUnitPrice.Text   = dr.UnitPrice.ToString();
         hfProductID.Value   = dr.ProductID.ToString();
     }
 }
Esempio n. 4
0
 public EComDataset.DataTable1DataTable ShowMyProducts()
 {
     EComDatasetTableAdapters.DataTable1TableAdapter adap1 = new EComDatasetTableAdapters.DataTable1TableAdapter();
     return(adap1.GetProducts());
 }