I have used response.redirect in classic ASP and ASP.NET webforms. However, with MVC 2.0, I am running into something peculiar.
I have a private method in a contr
try this code in mvc view page lode
if (Session["UserName"] == null) { this.Response.Redirect("LogOn"); }