Javascriptcode

M

menez64

Hi,

I just created a webpage that requires a username and password to be
submitted in order for the user to proceed to another section of the
site.

My questions is how can the landing page (the page the user is
redirected to, after submitting the correct information) verify that
the user has logged in??? If he/she hasn't how can I redirect the user
to the login page???

Can this be done with javascript itself??? or do in need to connect to
some sort of external database???

Thanks

- puma
 
C

cfps.Christian

When I did a login page I would have them submit via button and in the
button click event check their credentials against the database
(Active Directory if you choose) and if it validated I would transfer
them to the next page with the login info if not then I would postback
the page with the error label visible.
 
P

Peter Bromberg [C# MVP]

This is what the ASP.NET Membership, Roles and Profile providers are for. If
you go to the ASP.NET website, check out the QUICKSTARTS tutorials.
Peter
 

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