CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 9/28/2004 5:48:38 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 49 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
asad_dba
Asp.Net User
Specific Page Access in forms Authentication9/28/2004 5:48:38 PM

0/0


Hi,


I am using forms authentication in asp.net site, Actually I want to protect some of my page from Authenticated users. For example user ABC login to my site using forms authenticaiton and he is successfuly logged on, Now I dont to allow him to access some pages (url). Please help in this regard



with regards,
Asad Mahmood


regards,
Asad Mahmood
ranganh
Asp.Net User
Re: Specific Page Access in forms Authentication10/6/2004 7:24:08 AM

0/0



Hi,

You can specify those pages which you dont want them to access, in your web.config file of the root directory where you specify the authentication mode=forms

to do that, put the following code in your web.config file




<location path="ProtectedPage.aspx">
<system.web>
<authorization>
<deny users="*" />
</authorization>
</system.web>
</location>



The above would deny any user to view that page.

If you want only specific user to view the page (ex. admin user) you can specify as follows:-



<location path="ProtectedPage.aspx">
<system.web>
<authorization>
<deny users="*" />
<allow users="admin" />
</authorization>
</system.web>
</location>




If you have lot of such pages you can put them in a folder and specify the folder name in the location path= tag, instead of the file name. Then all the files in those folders will be protected.

Hope it helps.


regards,
Harish

http://geekswithblogs.net/ranganh
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
ASP.NET in a Nutshell: In a Nutshell Authors: G. Andrew Duthie, Matthew MacDonald, Pages: 979, Published: 2003
Professional ASP.NET 2.0 Security, Membership, and Role Management Authors: Stefan Schackow, Pages: 611, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005

Web:
donovanf's Identity and Access Blog : Using ADAM with ... Nov 14, 2006 ... Add a new Web form in the Authenticated folder called Login.aspx. ... Select “ Specific page:” and Browse to Authenticate\Default.aspx. ...
CodeProject: Form authentication and authorization in ASP.NET ... Anonymous access must be disabled in IIS. "Forms" You provide a custom form (Web page) for users to enter their credentials, and then you authenticate them ...
Forms Authentication - Redirecting users to a Page other than ... In this article I will explain how to redirect users to a specific page rather than the ... NET Forms authentication, if we try to access a protected page, ...
Forms authentication therefore set the authentication cookie in order to access ... To override that setting for a specific page, in your case start.aspx, just ...
Explained: Forms Authentication in ASP.NET 2.0 If an unauthenticated user tries to access a page, the forms authentication module redirects the user to the logon page specified by the loginUrl attribute ...
ASP.NET Forms Authentication - CAS Clients - JA-SIG Wiki NET options is to use "Forms Authentication", where access to a set of pages requires authentication through a login page. Typically a Web. ...
Forms Authentication - Access World Forums Reload this Page Forms Authentication .... would go about isolating a specific aspx page (i.e. LogOut.aspx) from being verified using Forms ...
Forms Authentication - make only one page anonymous access without ... Forms Authentication - make only one page anonymous access without changing .... it dynamically into the root web.config for only this specific application. ...
Safari Books Online - 0735619301 - C# Programmer's Cookbook Configure forms authentication using the tag in the application's Web.config file. Restrict anonymous users from a specific page or ...
An Overview of Forms Authentication : The Official Microsoft ASP ... NET 3.5, its Web.config file includes additional, 3.5-specific .... By default, the forms authentication system expects the login page to be named ...

Videos:
Introduction to Google Data Jeff Fisher walks through basic history and concepts behind the Google Data protocol. Visit the documentation for more information and list of availa...
Core Patterns for Web Permissions Google TechTalks July 19, 2006 Tyler Close Visiting Scientist Hewlett-Packard Laboratories Mr. Close is a researcher and developer, working in the...
Opencast Project Open House at UC Berkeley http://www.opencastproject.org/ Opencast is an initiative driven by higher education institutions to empower: institutions - to make informed choic...
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...
How To Break Web Software - A look at security vulnerabilities in web software Google TechTalks April 13, 2006 Mike Andrews Mike Andrews is a senior consultant who specializes in software security and leads the web application...




Search This Site:










component class file for .cs inheriting system.web.ui.webcontrols.style?

addstyleattribute works on ie but not firefox: why?

communication between user controls nested in a user control

adding style defaults in property

web controls that are not working at all

trial hosting for asp.net 2.0

property grid verb triggers windows form

mps versioning clarification

custom textbox and xp styles

viewstate returns null

template control - need to reject certain controls that are added

custom itemdatabound

inherited control and property values

multiple <@ register lines

using required field validators to validate that at least one textbox has contents

tagprefix

problem with dropdown lists (asp.net and c#)

hosted database with merge replication over https

dedicated asp.net hosting question

webhosting plan

control that will allow selection and drag and drop

embeding image in resx file

combined control: listbox & checkboxlist

reading a value from a dynamically loaded user control

templated control and state of the child controls

this cannot, cannot be true...

master pages

knowing items added/removed in itemtemplate in design mode

composite control htmltablecell problem

asp.net web dialog using c#

  Privacy | Contact Us
All Times Are GMT