Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2004, 09:25 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default Is IsInRole change if changes to ActiveDirectory

Hi All,
1- I am Using Windows Authentication
2- Authentication Made Based who is in Domain Group Can Access WebPage
3- Also I am Using IsInRole

Could I Do SomeThing to Stop Certain User Immediatly While He is Navigating the site..

i know that the user must logoff so he can get the new privileges

Any Help



Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old September 29th, 2004, 09:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Put a routine in the Page load that if they aren't in the right role, that they can't access it (by throwing an error, such as System.Security.SecurityException).

Brian
 
Old September 29th, 2004, 02:13 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

user must logoff so he can get the new privileges


Ahmed Ali
Software Developer
 
Old September 29th, 2004, 02:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Yes, that seems like that is the action needed to get new permissions, is that no good?





Similar Threads
Thread Thread Starter Forum Replies Last Post
FormAuthentication IsInRole() problem bignermo BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 2 August 8th, 2007 11:51 AM
Help with using ActiveDirectory using LDAP aldwinenriquez General .NET 1 July 19th, 2005 02:16 AM
ISINROLE is not working alyeng2000 ASP.NET 1.0 and 1.1 Professional 0 August 20th, 2004 07:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.