Last post Aug 20, 2008 06:17 AM by SpiderMaster
Aug 13, 2008 04:20 AM|wael_e|LINK
like level or category of membership
like users in level / type : type1: can view ads only not post
users in level / type : type2: can view ads and post
like this are it can do it
Aug 13, 2008 10:59 AM|darkknight187|LINK
I don't have any examples for you, but what you are talking about are roles.
Do a Google search for "asp.net roles"
I'm sure you will find a lot of tutorials.
Or you could wing it, by default the kit has two roles setup, Admin, and guest.
Once you figure out how to set a new role, look at your web.config
It looks like access to certain areas are given depending on the role.
One more thought, on your local computer, you can use the admin tool to manage users, and create roles.
I'm betting when a new role is created, it just adds it to the web,config.
You could use the admin tool in Visual Web Developer to create a new role, and then compare the differences in the web.config.
Aug 13, 2008 11:14 AM|SpiderMaster|LINK
Role management is defined in your database typically ASPNETDB.mdf how ever if you have not researched the way the database works I would suggest staying away from it for now.
Like the previous post, Your best bet is to use the administration tool from your solution explorer.
You will find a link called "Security" and now you can manage all users and roles.
If you want to do a category like search on your site that is defined by roles you would simply have a piece of code like
if(User.IsInRole == "NameOfRole")
/// Add your code here
Aug 14, 2008 02:01 AM|wael_e|LINK
thanks to all
yes i know it is role but where i will add this condion and mange the roll in this webapplication i know how i will add security role or mange it but how i will use it in this classifed applications
Aug 20, 2008 06:17 AM|SpiderMaster|LINK
You would use my example in the page_load of each page you want to modify or you can add it for specific pages in your We.Config file.
If you had a clearer example of what you want to achieve perhaps I could help you further.