By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,813 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,813 IT Pros & Developers. It's quick & easy.

Sample Login page

P: n/a
Where can I get a sample login page with all functionalities (such as
checking the password in the database, create cookies, check security and so
forth).

Code in C# would be fine. It it is already available, I don't have to
rebuild it from scratch.

Thanks.
--
test
Nov 7 '07 #1
Share this Question
Share on Google+
9 Replies


P: n/a
"rkbnair" <rk*****@community.nospamwrote in message
news:77**********************************@microsof t.com...
Where can I get a sample login page with all functionalities (such as
checking the password in the database, create cookies, check security and
so
forth).
http://www.google.co.uk/search?sourc...2eNET%22+login
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 7 '07 #2

P: n/a
The fasted way to get authentication up and running is to use ASP.Net 2.0
Membership, Roles, and Profile as explained in the following link.

http://aspnet.4guysfromrolla.com/articles/120705-1.aspx

Regards,
Brian K. Williams

"rkbnair" <rk*****@community.nospamwrote in message
news:77**********************************@microsof t.com...
Where can I get a sample login page with all functionalities (such as
checking the password in the database, create cookies, check security and
so
forth).

Code in C# would be fine. It it is already available, I don't have to
rebuild it from scratch.

Thanks.
--
test

Nov 7 '07 #3

P: n/a
No sample available from the Microsoft side though.
--
test
"Mark Rae [MVP]" wrote:
"rkbnair" <rk*****@community.nospamwrote in message
news:77**********************************@microsof t.com...
Where can I get a sample login page with all functionalities (such as
checking the password in the database, create cookies, check security and
so
forth).

http://www.google.co.uk/search?sourc...2eNET%22+login
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 7 '07 #4

P: n/a
"rkbnair" <rk*****@community.nospamwrote in message
news:BB**********************************@microsof t.com...
No sample available from the Microsoft side though.
You could try clicking the first site returned by the Google query I sent
you...

Specifically:
http://msdn2.microsoft.com/en-us/lib...29(vs.80).aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 7 '07 #5

P: n/a
Mark,

I checked it. But nothing downloadable!
--
test
"Mark Rae [MVP]" wrote:
"rkbnair" <rk*****@community.nospamwrote in message
news:BB**********************************@microsof t.com...
No sample available from the Microsoft side though.

You could try clicking the first site returned by the Google query I sent
you...

Specifically:
http://msdn2.microsoft.com/en-us/lib...29(vs.80).aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 7 '07 #6

P: n/a
"rkbnair" <rk*****@community.nospamwrote in message
news:84**********************************@microsof t.com...
I checked it. But nothing downloadable!
Have you tried Ctrl-C, Ctrl-V...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 7 '07 #7

P: n/a
Hi rkbnair,

For ASP.NET 2.0, a typical login page can be constructed through some login
controls. If you want to sample pages, you can download those starter kits
which should have login pages(as most of them use forms authentication):

#Starter Kits and Community Projects
http://www.asp.net/community/projects/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

-----
---------------
>From: =?Utf-8?B?cmtibmFpcg==?= <rk*****@community.nospam>
Subject: Re: Sample Login page
Date: Wed, 7 Nov 2007 08:22:02 -0800

Mark,

I checked it. But nothing downloadable!
--
test
"Mark Rae [MVP]" wrote:
>"rkbnair" <rk*****@community.nospamwrote in message
news:BB**********************************@microso ft.com...
No sample available from the Microsoft side though.

You could try clicking the first site returned by the Google query I
sent
>you...

Specifically:
http://msdn2.microsoft.com/en-us/lib...29(vs.80).aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 8 '07 #8

P: n/a
I created the login page with the help of the link provided.

However, I could not see any code behind it so that I can customize it.

How can I change the default database ASPNETDB.MDF?

--
test
"Steven Cheng[MSFT]" wrote:
Hi rkbnair,

For ASP.NET 2.0, a typical login page can be constructed through some login
controls. If you want to sample pages, you can download those starter kits
which should have login pages(as most of them use forms authentication):

#Starter Kits and Community Projects
http://www.asp.net/community/projects/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

-----
---------------
From: =?Utf-8?B?cmtibmFpcg==?= <rk*****@community.nospam>
Subject: Re: Sample Login page
Date: Wed, 7 Nov 2007 08:22:02 -0800

Mark,

I checked it. But nothing downloadable!
--
test
"Mark Rae [MVP]" wrote:
"rkbnair" <rk*****@community.nospamwrote in message
news:BB**********************************@microsof t.com...

No sample available from the Microsoft side though.

You could try clicking the first site returned by the Google query I
sent
you...

Specifically:
http://msdn2.microsoft.com/en-us/lib...29(vs.80).aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


Nov 13 '07 #9

P: n/a
Thanks for your reply Rkbnair,

For the question "How can I change the default database ASPNETDB.MDF", do
you mean you want to use your own membership database? If so, you can use
the <membershipsetting in web.config file to custoimze the membership
providers you use.

============
<system.web>
... authentication & authorization settings ...

<membership defaultProvider="CustomizedProvider">
<providers>
<add name="CustomizedProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MyDB"
applicationName="ScottsProject"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>
</system.web>

=================

I suggest you have a look at the following reference which can provide you
detailed info on how to configure and use membership & role service:

#ASP.NET 2.0 Security, Membership and Roles Tutorials
http://weblogs.asp.net/scottgu/archi...Security_2C00_
-Membership-and-Roles-Tutorials.aspx

#Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 1
http://aspnet.4guysfromrolla.com/articles/120705-1.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?cmtibmFpcg==?= <rk*****@community.nospam>
Subject: Re: Sample Login page
Date: Tue, 13 Nov 2007 09:13:05 -0800
>
I created the login page with the help of the link provided.

However, I could not see any code behind it so that I can customize it.

How can I change the default database ASPNETDB.MDF?

--
test
"Steven Cheng[MSFT]" wrote:
>Hi rkbnair,

For ASP.NET 2.0, a typical login page can be constructed through some
login
>controls. If you want to sample pages, you can download those starter
kits
>which should have login pages(as most of them use forms authentication):

#Starter Kits and Community Projects
http://www.asp.net/community/projects/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
>>
-----
---------------
>From: =?Utf-8?B?cmtibmFpcg==?= <rk*****@community.nospam>
Subject: Re: Sample Login page
Date: Wed, 7 Nov 2007 08:22:02 -0800

Mark,

I checked it. But nothing downloadable!
--
test
"Mark Rae [MVP]" wrote:

"rkbnair" <rk*****@community.nospamwrote in message
news:BB**********************************@microso ft.com...

No sample available from the Microsoft side though.

You could try clicking the first site returned by the Google query I
sent
>you...

Specifically:
http://msdn2.microsoft.com/en-us/lib...29(vs.80).aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 14 '07 #10

This discussion thread is closed

Replies have been disabled for this discussion.