Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
i have created website on Asp.net 3.5 c#, There are Some Webpages like Home,Aboutus,Downloads,SignUp,Quiz,Chat,Help etc etc.

There are Four type of users who will access this Website Admin Users, Office Users, Management Users, Normal users.

Now what i want is in Create User page it shows me all Webpages of my website in Check-box list. now when i am creating admin user i will give all pages rights by selecting all in Check-box list, like he/she can access Home,About-us.......all pages Etc. if i am creating Normal user i just want that he/she can access only Home,About-us,Help, Not all pages which i will select from check-box list. Same like for Office User & Management User i will give specific pages rights. And save Create-user Data in Sql-Server database with User Rights.

Is there any way to do this ? or if you have any other idea to give webpages rights to Users Please Help..................
Posted
Comments
Saqib Mobeen 16-Oct-14 1:16am    
Please make sure (before asking question here) that you have searched all over the internet but you could not find the proper solution.

You must study the Forms Authentication and Authorization in Asp.net
Google it.
You ll find the answers with plenty of examples.

You will find lots of example regarding your scenario this is basic requirement of all applications and it can be done very easily check the below links

ASP.NET authentication and authorization[^]

http://msdn.microsoft.com/en-us/library/vstudio/wce3kxhd(v=vs.100).aspx[^]
 
Share this answer
 
Read the below mentioned article thoroughly. You will find it very useful according to you r question.

Forms Authentication Provider
 
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