hi
I used below code to show session's data into lable:
if (Session["Order"] != null)
{
DataTable dtOrder = Session["Order"] as DataTable;
DataTable dtSessionValue = new DataTable();
dtSessionValue = (DataTable)Session["Order"];
if (dtSessionValue != null && dtSessionValue.Rows.Count > 0)
{
// this will bind the first row of the datatable
LblDown.Text = dtSessionValue.Rows[0]["Download"].ToString();
}
}
here in LblDown will show ["Download"] column data that saved in session now I want if in ["Download"] column's wasn't any data it will show in LblDown.Text="FREE"
how I can do it?
Best regards
neda