if (!this.Login()) this.lblMessage.Text = this.ErrorMessage; else { Response.Redirect("Default.aspx"); }However this does not work. I am aware that if the login form gets displayed by trying to access a secure page, then once logged in that page gets displayed, but I don't like displaying a generic page first which has a "Login" link that links to a secure page.