I have this condition in my page_load event and it seems to be ignored, i do have it OUTSIDE of my !IsPostback condition. I need to check those sessions EVERYTIME you get to the page, regardless if its the first time on the page or if you have been on the page / site for a while.. those sessions are being set on a different page and this particular page needs those variables in order to work.. so if they dont exist they need to be sent back to the first page so they can be set.
if (Session["ss_t_id"] == null || Session["ss_t_type"] == null)
{
Response.Redirect("/", false);
}
==============================================
if (!IsPostBack)
{
ddlReport.SelectedIndex = 1;
if (ddlReport.SelectedValue == "0")
{
lvReport.Visible = false;
...
Go to the complete details ...