Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Requiring login - enforce for individual pages instead of folder?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Homer J. Simpson - 29 Aug 2007 18:58 GMT
I've been toying with ASP.NET 2.0 for a few weeks now, and have only
recently started looking at the login controls.

The ASP.NET web site admin tool lets you create access/deny rules that apply
to individual folders.  Is it possible to extend that to individual pages?
For example, I have the following site hierarchy:

SectionA
   page1.aspx
   page2.aspx
SectionB
   page1.aspx
   page2.aspx
   page3.aspx
SectionC
   page1.aspx

I can apply rules to any of these folders, but there are pages, for example,
page1.aspx (only) in Section B that should be accessible by anyone--while
page2.aspx and page3.aspx should require a login.

Do I have to create an additional level under B for page2/3.aspx, or is
there some per-file permission setting in the admin tool that I've missed?
Homer J. Simpson - 29 Aug 2007 19:52 GMT
Looks like <location path=...> in web.config is the solution to this one.

Is this part of the site admin tool, or does this absolutely have to be
hand-edited?  I can manage, I'm just wondering if this is actually hidden
somewhere...

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.