Jitendra Kumar

Jitendra Kumar

  • 1.7k
  • 162
  • 8.5k

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"));
pds.Tables.Add(dt);
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();

Answers (1)