Author: zahidzia | Posted on: 12/18/2009 5:03:56 AM | Views : 928

Hi All,
I am using Visual Studio 2008 with SQLServer 2008. I am trying to develop a help desk system by using the asp.net login control but using my own sqlserver database and tables for users and roles.

I have roles like "Super User", "Admin", "Staff", "Clients" and have these folders also in solution explorer with their own web.config file.
Now I want to implement security when user logs in the role should be readed in the variable and the homepage should appear according to the role and if user wants to go into some webpage belongs to other groups the program should deny the user.
Now I want to know what code should I write in my web.config of all the folders. And also what code should I write here in this Default.aspx.cs file where I have put the login control. Please help.
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs ...

Go to the complete details ...