Posted on: 12/2/2014 1:40:16 AM | Views : 382

Hi 
I am trying to insert code in user_panel.aspx code behind to check first if the UserNme session is null redirect him to Berava.aspx and in same code it should check aslo before redirect him to Berava.aspx if the Location cookie is null too so if the cookie Location has value then he will redirect him to berava.aspx otherwise to Index.aspx. So should i use if or catch statement the code below its not complete as i am counfuse how i can make what i explain above

HttpCookie cookie = Request.Cookies.Get("Location"); if (Session["UsrNme"] == null || cookie ["Location"] == null ) { Response.Redirect("Index.aspx"); }

Go to the complete details ...