Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string id = Request.QueryString["id"];
                if (!string.IsNullOrEmpty(id))
                {
                    indexManager index = new indexManager();

                    this.data = index.getproduct(id);

                    connectionManager baseurl = new connectionManager();
                    url = baseurl.getbasurl("image/product/");


                    while (data.Read())
                    {
                        deleteproduct.Value = id;

                        /*
                         * txtname.Text = data[data.GetOrdinal("title")].ToString();
                         * desc.Text = data[data.GetOrdinal("description")].ToString();
                         * img.ImageUrl = url + data[data.GetOrdinal("img")].ToString();
                         *
                         * price.Text = data[data.GetOrdinal("price")].ToString();
                         * stock.Text = data[data.GetOrdinal("stock")].ToString();
                         */
                    }
                }
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            indexManager index = new indexManager();

            this.data = index.getproduct();
        }