Login & all pages aspx?

  • Thread starter Thread starter E
  • Start date Start date
E

E

Hi,

I'm creating a few pages on my site that you need to login to view. The
login pages and the secure pages are .aspx . If I want links at the top of
all pages on the site that says either "Login" or "Welcome Bob. Click here
to logout", do I have to make all of my pages .aspx or is there a way to
keep the unsecure pages HTML and somehow put this dynamic message at the
top? Any help is much appreciated.



Thanks,
-E
 
Not really. You could make all .HTML pages processed by ASP.Net, so they
would behave just like aspx files. However, you might not be able to do
that if you are using a shared hosting environment. Any reasons you can't
just rename the files to aspx?

Karl
 
This kind of thing is much easier with the new login controls of ASP.NET
2.0.
With a Master Page and a couple controls such as the LoginStatus, LoginView
and/or LoginName you could easily create this solution with zero lines of
code.
Here's more info:
http://SteveOrr.net/articles/SecureYourSite.aspx
 
Afaik MS removed the access ticket stuff.
So any other type then SqlServer based providers are seriously difficult.
I wrote me a class to handle that but frankly i wonder why this part is so
difficult if you simply want to use another type of DB (or file).

Am i wrong?
 

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

Back
Top