Posted on: 5/3/2011 11:24:18 AM | Views : 234

Hi, I've got a simple website with master page. I want users to be recognised by role and redirected to the assigned page. Sounds simple but I had a problem because every user despite his role is redirected to the site for default users. And also the loginStatus on the master page does't change to logout when a user is logged in. What's wrong wit it?
This is my code:
master page: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { if (User.IsInRole("Admin")) { // Do nothing, the page should be accessed as normal because the // user has administrator privileges. Response.Redirect("ad ...

Go to the complete details ...