Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 February 29th, 2008, 01:55 AM
Authorized User
 
Join Date: Feb 2007
Location: , , .
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default PageWise security in asp.net

Hi All,
Could anyone tell me please, how to add pagewise security in asp.net 2.0. I don't want to put my pages in different folders( for ex admin and users). I just want some mechanism, so that i can assign my pages to different users based on their role.
Thanks in advance

 
Old February 29th, 2008, 01:37 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The 'location' node in the web.config can be configured with a 'path' value of a single page or a folder. Therefore, you can secure a single page to one defined set of user(s) or role(s).

-Peter
peterlanoie.blog




Similar Threads
Thread Thread Starter Forum Replies Last Post
Security In Asp.net 2.0 mallikalapati ASP.NET 2.0 Professional 2 February 11th, 2008 10:15 AM
Integrating Security with ASP and ASP.NET thenoseknows ASP.NET 2.0 Professional 1 July 25th, 2007 05:11 PM
ASP.NET and directory security quintesv ASP.NET 1.0 and 1.1 Basics 1 September 26th, 2006 09:41 AM
ASP.NET Security unclehughie Wrox Book Feedback 0 July 16th, 2003 03:45 PM





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