how to redirect when the user is logged?

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
 
C

Chris

i found it:
If User.Identity.IsAuthenticated Then

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top