Click here to Skip to main content
15,916,379 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

am working on asp.net C#, Sqlserver 2005.

I have created a project which is to be accessed by using credentials.
I have a Admin Panel for creating users.

in this I have a page for creating users.

In this page, the administrator will give access based on checkboxes selected value.

Please can you show me, how to access to the different pages based on Checkbox selected value by Admin.

Thanks in Advance.
Posted
Comments
Ashi0891 25-Aug-14 2:11am    
You can use something like this may be
if(checkbox1.selectedindex==1)
{
do something
}

1 solution

Save CheckBox Value in DataBase.
When user opening any Page in which user must have access check relevant value on DataBase on Page_Load event. If value is true then continue else redirect home page or any other you want.
 
Share this answer
 
v2

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