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 / July 2007

Tip: Looking for answers? Try searching our database.

.net 2.0 Login Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PokerMan - 04 Jul 2007 13:38 GMT
Hi

I am trying to use the login control but there seems to be so much set up
required and it seems to lock the entire site and require a login for every
page.

All i want is to use the functionality of this control and be able to set
the pages that must require a successfull login to view.

Also i use master pages which seem to not show up on my login.aspx page when
it redirects there.

So my questions are:

1) Can this be used to set the specific pages that require login and only
redirect to login.aspx if a user directly tried to go to these without
having logged in
2) Is it possible to use master pages on the login.aspx page?

Examples of how to do the above would be great.

Thanks
PokerMan - 04 Jul 2007 13:47 GMT
Never mind figured it out....

in the web config do this:

<location path="PageToRestrict.aspx">

<system.web>

<authorization>

<deny users="?" />

</authorization>

</system.web>

</location>

Which tells it to only check that page for authentication

> Hi
>
[quoted text clipped - 18 lines]
>
> Thanks

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.