Database
  Home arrow Database arrow Page 2 - Database Storage with the ASP.NET Web Matr...
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 
Mobile Linux 
App Generation ROI 
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


    Database Storage with the ASP.NET Web Matrix: Simple Login Page - Start with the Properties pane


    (Page 2 of 5 )

    Using the Properties pane at the far right of the Web Matrix (just below the Data pane), set the Text value of the first label to Username: then set the ID value of the textbox to txtUsername.  Set the ID of the label after the textbox to lblUsernameError and clear the Text value.  Now set the Fore color to red.

    Move down to the next line and set the Text value of the first label to Password: then set the ID value of the textbox to txtPassword.  Set the ID value of the label following this textbox to lblPasswordError, clear the Text value and again set the Fore color to red.

    Move down to the button and set the ID value to btnSubmit and the Text value to Submit.  Finally, move down to the last label control and set the ID value to msgWelcome, set the Fore color to green and clear the Text value.

    These are the only visual elements we will need.  Your page should look a little like this:

     

    In the previous example, we used an INSERT function to write the information submitted by the user to the database.  In this example, we will use a SELECT function instead to read the contents of the database.  In fact, we will use two SELECT functions, one to read the first column of the database (username) and one to read both the first and second columns (username and password).

    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

    - Excel Reference
    - 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

     
    Application Delivery: Everything You Wanted to Know, but Didn`t Know You Needed to Ask
    A comprehensive guide to examining the topics of Wide-area Data Services and app....

     
    Best Practices: Safe and Secure Hardware Asset Recovery
    Companies increasingly must meet EPA and local requirements for the disposal of ....

     
    Managing SSL Security in Multi-Server Environments
    Read this white paper to learn how to simplify management of your organization's....

     
    Open Source Security Myths
    Open Source Software (OSS) is computer software whose source code is available t....

     
    Power and Cooling Capacity Management for Data Centers
    This paper describes the principles for achieving power and cooling capacity man....

     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT