hi I have button in page that save data into session:
protected void ImgorderL_Click(object sender, EventArgs e)
{
ImageButton ibtn = sender as ImageButton;
int id = Convert.ToInt32(LblId.Text);
DataTable dtFiles = GetFilmInfo(id);
string Name = dtFiles.Rows[0][1].ToString();
DataTable dt = new DataTable();
if (Session["Order"] != null)
{
dt = Session["Order"] as DataTable;
}
else
{
dt.Columns.AddRange(new DataColumn[] { new DataColumn("Id",typeof(int)),new DataColumn("Name",typeof(string)),new DataColumn("Download",typeof(string)), });
}
dt.Rows.Add(dt.Rows.Count + 1, Name,"download");
int totalOrder = dt.AsEnumerable().Sum(row => row.Field<int>("Quanyity"));
Lblorder.Text = totalOrder.ToString();
Response.Cookies["UserName"].Value = Lblorder.Text.Trim();
Session["Order"] = dt;
}
in other page I have label lbldownload that I want show data that save into download column in session in this label
new DataColumn("Download",typeof(string))
how I can do it?
Best regards
neda