Database
  Home arrow Database arrow Database Storage with the ASP.NET Web Matr...
Moblin
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DATABASE

Database Storage with the ASP.NET Web Matrix: Simple Login Page
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 28
    2005-09-21

    Table of Contents:
  • Database Storage with the ASP.NET Web Matrix: Simple Login Page
  • Start with the Properties pane
  • Switch to the Code view
  • Encrypting the password
  • Do you want to use a template?

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!

    Database Storage with the ASP.NET Web Matrix: Simple Login Page


    (Page 1 of 5 )

    This article covers the creation of a basic login page for your website. With this page, when a registered member returns to your website and logs in, he or she will be able to access restricted or personal areas of your site.

    If you read my last article about creating, connecting and writing to a database using the Microsoft Web Matrix, you should have a working registration page that will allow users to enter a username and password into your database, thus registering as a member.  Certain criteria were also enforced, such as unique usernames and a minimum password length of seven characters.

    This article will focus on creating a login page to go with the registration page so that when a member returns, they are able to access restricted or personal areas of your site.  The page itself will be very basic, just a simple demonstration of reading data from a database and matching records.

    To begin with, you’ll need to create a standard ASP.NET page from the general templates section.  You also need to make sure that the database from the previous example (members) is connected, and if not, connect it by choosing the Add Database Connection button from the Data pane at the far right of the Web Matrix, then by selecting the database in the Connect to SQL or MSDE Database dialog box.

    Once that is done, set up the registration page by, in the Design view, dragging a label web control, a textbox web control and another label web control onto one line, then another line featuring the same controls.  Then on a new line, drag a button web control onto the page, and finally, on another new line, drag a final label control onto the page.

    More Database Articles
    More By Dan Wellman


       · Hi everybody, this is the second in a so far four part series exploring the built...
     

    DATABASE ARTICLES

    - Database Programming in C# with MySQL : Usin...
    - Formatting Techniques for Data Access from E...
    - Data Access from Excel VBA
    - Generating a Multiple Table Crystal Report u...
    - ADO and the Command Object
    - On Wiring Up an ADO Data Control
    - Reading and Writing to Files on the Intranet
    - Using ADO Record to Create and Navigate Intr...
    - Using Data Access Pages to Access Data on a ...
    - Using ADO with the SQL Native Client
    - ADO`s Stream Object
    - Opening a Record Object Referencing an Open ...
    - Introducing Jasper (SQL Anywhere 10 Beta)
    - Creating a Database Project in VS 2005
    - Manipulating ADO Recordsets





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway