Author: sondos_11 | Posted on: 2/13/2011 4:50:41 AM | Views : 374

Hello,
I am adding users to roles ,, but i think the users are not really connected to the role ??
One othe thing: does this code looks ok:
if (Page.User.Identity.IsAuthenticated == false)
        {
            Server.Transfer("Default.aspx");
        }
       
        if (Page.User.IsInRole("Admin")== true)
        {
            Server.Transfer("main.aspx");
        }
        string name = User.Identity.Name;
        user.Text = name;


Thank you in advance,

...

Go to the complete details ...