Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Redirect to a page after Login
Message
De
23/02/2010 12:26:03
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Redirect to a page after Login
Divers
Thread ID:
01450504
Message ID:
01450504
Vues:
108
Hi,

I am staring on my first mm .net app. I want the first page to be displayed in my web user interface as the login screen. After the user logs in, I then want to display my main page. Currently I just get a page displayed stating "you are now logged in".

I tried adding this code in:
	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.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform