how to redirect when the user is logged?

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,

i created a default page with loginview and loginstatus like this:

<asp:LoginView ID="LoginView1" runat="server">
<LoggedInTemplate>You are logged</LoggedInTemplate>
<AnonymousTemplate>You are not logged</AnonymousTemplate>
</asp:LoginView>
<asp:LoginStatus ID="LoginStatus1" runat="server" />

When logged, the user sees he's logged but is still in the default page. Is
it possible to redirect the user to another page immediately when he is
logged?

Thanks
Chris
 
i found it:
If User.Identity.IsAuthenticated Then

Response.Redirect(String.Format("file.aspx"))
 
Back
Top