I'm new to this forum (was always a reader, not a poster). And I'll hope to learn alot here.
I have to admit, I'm a total newbie to the ASP programming language.
Now onto my problem: I want to make a login, which redirects to different pages bound to the username after the login
I already tried solutions offered on : http://forums.asp.net/t/1079990.aspx?PageIndex=1
So basically what I want is for example this:
I have 2 users: Timon & Bob
Timon logs in, Timon gets redirected to the page Timon.aspx
Bob logs in, Bob gets redirected to the page Bob.aspx
My loginform ID is called Login1, and its on the Default.aspx page, since I want users to login before viewing any content.
At the moment, I just login and it works (if I type wrong info it gives error etc), but when I login I just get redirected to Default.aspx again.
The code in my Default.aspx.cs at the moment is:
protected void Login1_LoggedIn(object sender, EventArgs e)
else if (Roles.IsUserInRole("Timon"))
View Complete Post