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.
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.
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
Thanks Matt. Appreciate the help.
--steve
is working on a reply...