Author: SamU | Posted on: 11/19/2010 2:00:39 PM | Views : 482

Hi,
I'm using the built-in membership controls and classes to manage authorization and authentication in my app.
Here's what I want to do:
If the user is in "Manager" role, I want to send him/her to the manager page no matter where he/she came from .
If the user is in "Supervisor" role, I want to send him/her to supervisor page no matter where he/she came from.
However, if the user is not in any role, just a registered member, I want to send him/her back to where he/she came from as stated in ReturnUrl. If no, ReturnUrl is specified, I will send him/her to the home page.
On my login page, I'm using the Login server control but in my code behind, there's no method wired to the control because the control takes care of everything.
I assume I need to add a method and wire it to the submit button, is that right? If so, I'll have to really handle the login event which means I'll need more info about how ...

Go to the complete details ...