Click here to Skip to main content
15,913,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project i have two types of users 1.employees 2.admin
depending on who logs in they are taken to different pages...i have a database for employees called employee master and a taskmaster database which holds tasks assigned to all employees and this taskmaster also holds the employeeid from the employeemaster as the foreign key...now when an employee logs in..the page should display the tasks assigned to only that employee who has logged in....how do i go about it?

can this be done using asp.net built in tools or will be required to write queries??
Posted

Looks like you had heard of Role Manager in ASP.NET 2.0 and getting confused.

Read this:
MSDN: Use Role Manager in ASP.NET 2.0[^]

You can use ASP.NET built in functionality via configuration but you would need to authenticate the user after login and get back certain necessary profile details.

Also go through this:
ASP.NET 2.0 Membership, Roles, Forms Authentication, and Security Resources [^]
 
Share this answer
 
gopal07 wrote:
will be required to write queries??


Of course you will. ASP.NET authentication knows nothing about your database, nor should it. It's up to you to retrieve and populate the forms appropriately after it has handled the authentication
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900