Jitendra Kumar

Jitendra Kumar

  • 1.8k
  • 189
  • 15.8k

How can i send image to cheakout page from detail page?

Aug 30 2018 2:59 AM
This is code which I am doing on the details page
DataSet pds;
pds = new DataSet();
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Imagename"));
dt.Columns.Add(new DataColumn("productid"));
dt.Columns.Add(new DataColumn("Id"));
dt.Columns.Add(new DataColumn("Productname"));
dt.Columns.Add(new DataColumn("quantity"));
dt.Columns.Add(new DataColumn("Price"));
dt.Columns.Add(new DataColumn("saleprice"));
DataRow dr = pds.Tables[0].NewRow();
dr["Imagename"] = ds.Tables[0].Rows[0]["Imagename"].ToString();
dr["productid"] = Request.QueryString["id"];
dr["Id"]= ds.Tables[0].Rows[0]["id"].ToString();
dr["Productname"] = ds.Tables[0].Rows[0]["Productname"].ToString();
dr["quantity"] = qty.Value;
dr["Price"] = ds.Tables[0].Rows[0]["Price"].ToString();
dr["saleprice"] = ds.Tables[0].Rows[0]["saleprice"].ToString();

Brought to you by:

Answers (1)