473,322 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How t let user define privilage to a new added Role?

JustRun
127 100+
Hi,

I can create a new Role, its simple, But it will be no use if the user cant define privilage to this role, like allow access to some pages, and deny it to athe pages?

I use the Web.Config to define my roles authorization like bellow

Expand|Select|Wrap|Line Numbers
  1.   <location path="User">
  2.     <system.web>
  3.       <authorization>
  4.         <allow roles="User"/>
  5.         <allow roles="administrator"/>
  6.         <deny users="*"/>
  7.         <deny users="?"/>
  8.       </authorization>
  9.     </system.web>
  10.   </location>
  11.   <system.web>
  12.  
Any Help?
Oct 2 '08 #1
2 1269
Frinavale
9,735 Expert Mod 8TB
Check out this video on Forms authentication and using Membership/Roles in your application.

-Frinny
Oct 2 '08 #2
JustRun
127 100+
Hi,

Thanks for ur reply, I know how to add a nw role and how to give it the authority,
But how to let the End Use do this?

Let me expain more.

I Know -----> How to add a new role
I Know -----> How to mange the authority of this role from the We.Config

I Dont Know ----> How o let the END User do the same "Dynamiclly"

I want to display a window in the xxx.aspx page this page Contains all folders of the web-site
1- let the user add a new Folder
2- Make that New Role access this folder "Only this new folder"
Oct 6 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jon Ley | last post by:
I am having a problem restricting write access to tables in my database. In my database I have a table called, for the sake of argument, 'TableX'. In my SQL Server Logins, I have set up a login...
1
by: rcamarda | last post by:
I wish to create a user that can backup any or all databases in our SQL Server 2000 Instance. I thought there would be a server role for this function, however I can only find that after I grant...
2
by: Jesper Stocholm | last post by:
I have implemented role-based security within my ASP.Net application. However, it seems the role is not passed to the authentication ticket I create. I want to use it to display/hide some...
4
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet...
4
by: Jamie Pollard | last post by:
hello, i have been scouring the groups for the best possible solution to this problem, but can't seem to find my exact scenario, so hopefully someone can get me back on the right path. my...
2
by: Randy Yates | last post by:
Forgive me if this is a basic and trivial (i.e., stupid) question. I haven't been using postgres very long, and I'm not an experienced database system developer. I noticed that there is a very...
1
by: WhiskyRomeo | last post by:
I have an ASP.NET application that was ported from a server where IIS, the database (SQL Server 2000) and web application were on the same server. The new server is a Windows 2003 (Webserver...
8
by: | last post by:
I'm looking for some design guidance on a collection of projects I'm working on. The project involves a bunch of websites constructed out of a collection of user controls. Different user...
2
by: Anthony Smith | last post by:
I have a user object that is set when a user logs in. There are also permissions that I get about the user from a web service. Currently I take the results from those web services and store them as...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.