How do I create a link that is password protected

G

Guest

I would like to put a link on our home page that is password protected so
that only members can open it.
 
C

clintonG

ASP.NET 2.0 supports Membership, Roles and Profiles. If the user is not in
the desired role for example the link doesn't even need to be displayed.
That still requires a login of course for opitmal results. The same can be
done 'long hand' using scripting languages. Since your link is on the
homepage there is no reasonable way to password protect the use of the link.
All you can reasonably do is prevent the page the link loads from loading if
the user is not logged in and has not been assigned permission to load the
page.

FrontPage users are usually told to use subwebs which are a lame hack that
requires the website operator to use a goofy folder and file management
schema that may not be in their best interest but subswebs do work and can
be used to enable passwords to prevent unauthorized access but the best
strategy is to use program logic on folder and files as required.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top