Creating a Login Form

  • Thread starter Thread starter Crouchie1998
  • Start date Start date
C

Crouchie1998

What's the simplest way to create a login page in ASP.NET & VB.NET?

Awaiting your reply,

Crouchie1998
BA (HONS) MCP MCSE
 
Thanks, but I haven't found any of your search results that limit the user
to either the login page or the purchase/links pages.

I require the user to login to search, download etc. otherwise be kicked to
the login page

Any ideas?

Crouchie1998
BA (HONS) MCP MCSE
 
The very first link returned by that search shows how to do that.

All the initials in the world, after your name,
are no good if you can't follow a simple link.



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
This really becomes a loaded question, because it is "too simple". If
you wanted the ultra simplest way to create a login page, just put the
username and password on the querystring to the page request and if
they aren't correct, they don't get in.

Don't think you can get much "simpler", friend. In real business
practice, it becomes a lot more complex than this. So the real question
is "What's the simplest way to create a login page in ASP.NET that has
the following FEATURES:"
<your feature list here>....
 
Thats right Juan.
Patrick

Juan T. Llibre said:
The very first link returned by that search shows how to do that.

All the initials in the world, after your name,
are no good if you can't follow a simple link.



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
I require the user to login to search, download etc. otherwise be kicked to
the login page

Then its a not so much login form functionality that you require but more
embedding a check for authentication into each page/user control service
that requires it.
The simplicity of this will be determined by the authentication mechanism
you choose. Assuming forms authentication, you can simply query the
IsAuthenticated property of the current user principle/identity object
located via HttpContext.

The simplest and cleanest way to do this is in my opinion is by OOPing up
your application page heirarchy and using a common base class method to
check authentication and handle redirects etc. That way you dont have
authentication code strewn throughout your application. Obviously you could
also do this via Global.ascx but i prefer the method described above.

Richard
 
how about once the user is in the called page? How can I ensure that the
previous page was Login.aspx?
 
re:
how about once the user is in the called page?
How can I ensure that the previous page was Login.aspx?

If you use Forms Authentication, and if the user is authenticated
he can simply continue navigating.

If the user isn't authenticated, he's returned to login.aspx.

See http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=186

ASP.NET 2.0 makes this a lot simpler :

See : http://beta.asp.net/guidedtour2/s26.aspx




Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
Juan,

I never seached Google for this actually.

By the way: MCP & MCSE are higher qualifications then just helping people
out in the newsgroups & getting a MVP.

I've been helping users in the Microsoft VB.NET newsgroups, GotDotNet,
Developer Fusion, Windows Forms, VB City to name a few since 1997

The only thing I have never done is web programming because I find it a
completely boring task, whereas, Windows programming is a lot different.
Also, I am a Dreamweaver user since version 2, not ASP.NET, which I started
to dabble in a few days ago compared to 25 years of Assembly, C/C++/C#/VB
3/4/56, VB.NET 2002/3/5 & some Visual J++

I deserve a MVP quite honestly, but the other MVP's I have seen who use the
newsgroups only search Google & never write a piece of code in their lives.
If that's what you need to qualify then I'd rather not have it.

Good luck Juan & would you be able to search Google to change your attitude?

Crouchie1998
BA (HONS) MCP MCSE
 
Pratprick,

If you have nothing constructive to say then don't say anything

Crouchie1998
BA (HONS) MCP MCSE
 
re:
I never seached Google for this actually.

Yup. That's evident.

re:
By the way: MCP & MCSE are higher qualifications then
just helping people out in the newsgroups & getting a MVP.

If you can't follow a simple link to find out the information
which you have requested, they aren't worth a weeviled bean.

re:
I deserve a MVP quite honestly

That's your opinion.

From where I sit, you've been active in the public newsgroups
from 4/5/2005 to 7/16/2005, excepting the message I'm replying to.

That doesn't quite qualify you to be designated as an MVP.

re:
the other MVP's I have seen who use the newsgroups only
search Google & never write a piece of code in their lives.

You have MVPness envy.

From your posts at microsoft.public.dotnet.languages.vb
it seems that you are a decent fellow.

It's too bad that you let your ego get in the way
when you are called on a mistake in *this* newsgroup.

People should know their limitations.
It's clear you don't know yours.

May you "live long, learn, and prosper", to paraphrase Spock.




Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
¤ Juan,
¤
¤ I never seached Google for this actually.
¤
¤ By the way: MCP & MCSE are higher qualifications then just helping people
¤ out in the newsgroups & getting a MVP.
¤
¤ I've been helping users in the Microsoft VB.NET newsgroups, GotDotNet,
¤ Developer Fusion, Windows Forms, VB City to name a few since 1997
¤
¤ The only thing I have never done is web programming because I find it a
¤ completely boring task, whereas, Windows programming is a lot different.
¤ Also, I am a Dreamweaver user since version 2, not ASP.NET, which I started
¤ to dabble in a few days ago compared to 25 years of Assembly, C/C++/C#/VB
¤ 3/4/56, VB.NET 2002/3/5 & some Visual J++
¤
¤ I deserve a MVP quite honestly, but the other MVP's I have seen who use the
¤ newsgroups only search Google & never write a piece of code in their lives.
¤ If that's what you need to qualify then I'd rather not have it.
¤

You might want to lose the snooty attitude first. I've been through Microsoft's certification
programs in the past and they don't qualify you as an expert, nor are they an indication that you
have any experience.

In addition, putting down what others may do for a living won't win you any brownie points. ;-)


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Juan instead of taking time to construct those sentences you could have
replied 20 other posts.
Why waste your time :(
 

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