473,395 Members | 1,583 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,395 software developers and data experts.

Sample Login page

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
9 4195
"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
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
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
"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
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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: amit.purohit | last post by:
hi, I have a very strange problem on my login Page. the Page was working fine a few days back, but now does not generate post back events for controls. this login page uses form based...
3
by: Vijay | last post by:
Hi, Based on the session timeout, session will be expired. Timebeing , we are manually checking in the each page, whether the session is expired or not, If so,we are redirecting to common login...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
3
by: Dam6 | last post by:
Okay... Using vb .net within DW MX2004, connecting to an access database: Background: I have created a simple login.aspx page that is supposed to re-direct to default.aspx using...
7
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms...
1
by: Andrew | last post by:
Hello, friends, I am using Forms Authentication in our asp.net app. However, I found that sometimes, the ReturnURL was not in QueryString. For example, I could redirect from login page without...
5
by: Greg Smith | last post by:
I am writing an application in VS2005. I have created two forms and tested both as the startup page. I changed the web.conf to use Forms based authentication and defined one as the login page. ...
2
by: Sasquatch | last post by:
I'm having trouble creating a simple login page using the asp:login control. I followed some instructions in a WROX book, "Beginning ASP.NET 2.0," and the instructions are very straight forward,...
8
pentahari
by: pentahari | last post by:
Redirect to login page if session("UserName") is expired when the page useraccount.aspx load event My useraccount.aspx code : If Session("UserName") Is Nothing Then ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.