コード例 #1
0
    private void BindProduct()
    {
        DataTable dt = new DataTable();

        dt = objProduct.GetProductOnItemDetails(Convert.ToInt32(Request.QueryString["id"]));
        reponeitemdetails.DataSource = dt;
        reponeitemdetails.DataBind();

        dt = objaccess.GetDatatable("select * from tblProduct where ProductID='" + Request.QueryString["id"] + "' ");
        if (dt.Rows.Count > 0)
        {
            labelDescription.Text = dt.Rows[0]["Description"].ToString();
        }
    }