Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Security Admin Page (asp.net 2.0) ? 1

Status
Not open for further replies.

NoCoolHandle

Programmer
Joined
Apr 10, 2003
Messages
2,321
Location
US
I need to be able to an Administration Page for a site I am developing for a client similar to (or the same as) what comes with the development environment.

I realize I could construct all the parts, but does it work if you just specift the port? or how can you bring it up? Can we extend - inherit from it?

Feeling kind of stupid (and am missing the obvious)


Rob
 
You would have to create an admin tool yourself. This is only used internally for site admin. I haven't seen a way to get to the objects, but you never know, it may exist :0

Jim
 
WSAT is only a view built on top of the the configuration and security provider classes of ASP.NET.

The good news is that there's not much code involved in writing something similar yourself (because you can't link to WSAT as far as I know). You will, however, need to be aware that some changes, such as provider configuration, require a greater level of trust (MediumTrust if not FullTrust) than is typically granted to web applications especially in hosted environments.

For the meantime, if you start playing with the Membership and Roles objects (e.g. Membership.GetAllUsers() and Roles.AddUsersToRole()) you'll quickly discover how easy it will be to do what you want.
 
Thanks Guys,

That is kind of what I expected, but I hadn't looked into the membership and roles providers too deeply, so..

Now I will look into that :) a star to you boulderbum.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top