Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dwarakesh 50 posts 69 karma points
    Sep 05, 2011 @ 07:22
    dwarakesh
    0

    Redirect Url after Login

    Hi

     How to set the node to redirect after login

    I have three nodes in content section

     1. nodea
    2.nodeb
    3.Login

    i have to set nodea or nodeb as a redirect url after login . how to go about this

     

     

     

     

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2011 @ 07:27
    Fuji Kusaka
    0

    Hi

    If you are using the asp.net login control you can do it like this

     <asp:login id="login1" runat="server" DestinationPageUrl="nodea.aspx"> 
  • Aximili 177 posts 278 karma points
    Sep 05, 2011 @ 07:49
    Aximili
    0

    This is how I did mine

    <asp:Login ID="Login1" runat="server" onloggedin="Login1_LoggedIn" />
      protected void Login1_LoggedIn(object sender, EventArgs e)
    {
    Response.Redirect(Web.AppPath + "members.aspx");
    }

  • dwarakesh 50 posts 69 karma points
    Sep 05, 2011 @ 07:54
    dwarakesh
    0

    Hi fuji,

    Thanks for the reply.. i got it.

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2011 @ 07:58
    Fuji Kusaka
    0

    Hi dwarakesh,

    Can we possibly know how you did it?

  • dwarakesh 50 posts 69 karma points
    Sep 05, 2011 @ 08:01
    dwarakesh
    0

    Hi Hardi

     Where i need to add the  following code to have a redirect

    protectedvoidLogin1_LoggedIn(object sender,EventArgs e)
     
    {
       
    Response.Redirect(Web.AppPath+"members.aspx");
     
    }




     

  • dwarakesh 50 posts 69 karma points
    Sep 05, 2011 @ 08:03
    dwarakesh
    0

    used asp.net login controls and created login template ...

    Added  <asp:loginid="login1"runat="server"DestinationPageUrl="nodea.aspx">  in the Login template ...

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2011 @ 08:09
    Fuji Kusaka
    0

    Ok, great if you got it working. However you should be aware that if you are using v4.7.0 you will need to create a usercontrol for the logout.

    There is a little bug in version 4.7.0 where logging out doesn't completely log a user out.

     

    //fuji

  • dwarakesh 50 posts 69 karma points
    Sep 05, 2011 @ 08:18
    dwarakesh
    0

    i musing 4.0 version. so will have that in mind wen migrating to 4.7 ..

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2011 @ 08:24
    Fuji Kusaka
    0

    This will be fixed in version 4.7.1

Please Sign in or register to post replies

Write your reply to:

Draft