Copied to clipboard

Flag this post as spam?

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


  • Steve Barnhouse 40 posts 63 karma points
    Aug 25, 2010 @ 05:58
    Steve Barnhouse
    0

    Questions about the .net login user control

    My website has a menu item that will allow clients to see prototype web pages when they log on.  My document tree looks like this:

    After a login, I want to redirect to a new page, for example client-joe.aspx.  In the template for the Login document, I'm using the asp.net login user control.   Currently, after a successful login, it redirects to my home page.  How do I change this?  

    Also, can I rename the document that displays the login control?  If I call it "Client Area" for example, after a successful login, it does not redirect anywhere, but just continues to display the page with the login control.

    I am new to asp.net, so maybe I'm missing something obvious here or going about it in the wrong way.

    Thanks for your help.

  • Matt Brailsford 4123 posts 22194 karma points MVP 9x c-trib
    Aug 25, 2010 @ 09:51
    Matt Brailsford
    0

    Hi Steve,

    You could do that a couple of ways.

    1) Set the DestinationPageUrl attribute on the login control
    2) Handle the OnLoggedin event and do a redirect from their

    You can see an example here:

    http://www.netomatix.com/Development/LoginControlBasic.aspx

    Many thanks

    Matt

  • Steve Barnhouse 40 posts 63 karma points
    Aug 26, 2010 @ 03:00
    Steve Barnhouse
    0

    Thanks Matt.  Appreciate the help.

    --steve

Please Sign in or register to post replies

Write your reply to:

Draft