Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Login System (ASP.NET)

0.00/5 (No votes)
9 Sep 2004 1  
This is basically a Login system in ASP.NET using vb.net and javascript,ODBC using DSN method.This is my first code in asp.net. I am new to ASP.NET.

Introduction

Download sourcecode

Login System (ASP.NET)

This is basically a Login system in ASP.NET using vb.net and JavaScript.
I searched lots of site for "DSN" connectivity in asp.net. But I couldn�t find a single site .So I feel to share this article or code among the developers.
I have used ODBC "DSN� method to connect with database.
And for validation I have used JavaScript, so the beginner in ASP.Net can learn how to use JavaScript in ASP.NET.
As I am new to ASP.NET, if you feel to leave any comment please.


This is my first article on login system in asp.net.

  • What it does?
    This is an login system in asp.net using vb.net.Where you can redirect a registered user to the protected area of your website.
  • Simple to integrate with your existing system
    This is very simple code. You can easily integrate wiht your existing .net site.
    You have to include this file in to your existing code or the file where you want to make login area.
    Database: For database you have to create a table in to your existing or new database call " tblAdmin"
  • Structure of the database
    FieldsName    Datatype
    sno          autonumber
    username          text
    pwd                  text

    After verifying the password you can easily redirect the user to the protected area of your website by modifying
    the redirect option in the file.
    You can also check the user if the user is logged in or not by session("whois"). If the value of this variable is blank then you can again redirect the user for login page.

The most important part of the code is DSN connectivity and Javascript to validate the form. I have searched lots of site about the DSN connectivity in ASP.Net but I couldn't find a single site on DSN method.
I have tried my own skills and get this code. So I want to share this article or code with other programmers who are looking for some information on DSN connectivity in asp.net and javascript using in asp.net.

As I said earlier I am new to asp.net. If there are any bugs or suggestions for improvements please let me know.I have updated this to prevent from "Sql Injections"

Login System in ASP.NET by Vipin Sharma. Visit me at http://www25.brinkster.com/vipinsharma
Enjoy!

Vipin Sharma.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here