473,414 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Creating a Login Form

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

Awaiting your reply,

Crouchie1998
BA (HONS) MCP MCSE
Nov 19 '05 #1
13 2372
Googling would have gotten you an answer much faster.

http://www.google.com/search?as_q=da...asp.net+sample

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

"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:Ov**************@tk2msftngp13.phx.gbl...
What's the simplest way to create a login page in ASP.NET & VB.NET?

Awaiting your reply,

Crouchie1998
BA (HONS) MCP MCSE

Nov 19 '05 #2
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
Nov 19 '05 #3
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...
======================

"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
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

Nov 19 '05 #4
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>....

Nov 19 '05 #5
Thats right Juan.
Patrick

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:O%****************@TK2MSFTNGP14.phx.gbl...
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...
======================

"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
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


Nov 19 '05 #6
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
Nov 19 '05 #7
ae
how about once the user is in the called page? How can I ensure that the
previous page was Login.aspx?
"Peter Bromberg [C# MVP]" wrote:
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>....

Nov 19 '05 #8
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/Arti...px?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...
======================

"ae" <ae@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com... how about once the user is in the called page? How can I ensure that the
previous page was Login.aspx?
"Peter Bromberg [C# MVP]" wrote:
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>....

Nov 19 '05 #9
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
Nov 19 '05 #10
Pratprick,

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

Crouchie1998
BA (HONS) MCP MCSE
Nov 19 '05 #11
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...
======================

"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... 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

Nov 19 '05 #12
On Tue, 19 Jul 2005 23:43:09 +0100, "Crouchie1998" <cr**********@spamcop.net> wrote:

¤ 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)
Nov 19 '05 #13
Juan instead of taking time to construct those sentences you could have
replied 20 other posts.
Why waste your time :(

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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...
======================

"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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


Nov 19 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sharp2037 | last post by:
Hi Everyone, I am working on an ASP.net application and I have a homepage to which everyone visits of course and on that front page I have a user ID and password box and a login button. What...
4
meLady
by: meLady | last post by:
Hello, I have a table which called "users" and it has two fields "username" and "password". Also, I have a form that called "User Login", and it has as following: -txtUsername -txtPassword...
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
5
by: tech.rawsteak | last post by:
I have a function that retrieves a user's login name from their workstation and looks it up on an employee table to return their full name (ie: jsmith -John Smith). Their full name is then...
4
by: tusharkanta | last post by:
I need a dynamic login/signup form that will appear on click of login or signup. The background page should be faded while the login form appears on foreground. Please refer the example site as: ...
4
by: nitin005 | last post by:
Hi, I have created a window application. I have to provide security to it. I have to provide a login form with username and password. The username and password are present in the database. When i...
1
by: nabman | last post by:
OK, I am creating a program where I have two forms, the login and main form. On the login form the user will be prompted to enter their account number and password. This info is read from a file....
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
1
by: bradorn | last post by:
I'm making a registration form to be able to log on my site. This is the code for registrating. <html> <body> <?php include ("connect.php"); $login = $_POST; $pass = $_POST; ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.