Click here to Skip to main content
Click here to Skip to main content

Login System (ASP.NET)

By , 9 Sep 2004
Rate this:
Please Sign up or sign in to vote.

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

About the Author

vipinsharma
Web Developer
India India
I specialise in the design and development of Internet and Intranet applications on Windows 2000
and Windows NT. The main tools and technologies I use are: Visual InterDev, FrontPage,HTML
Dreamweaver Active Server Pages (VBScript and JScript),Java Server Pages, JavaScript,
Visual Basic 6, Component Object Model (COM),DCOM SQL Server 7.0, ADO, Access 97, Oracle8i
Index Server,Visual Interdev 6.0.
I also have some experience in web development on WindowsNT and Access,Oracle.

Comments and Discussions

 
GeneralNot Secure - SQL Injection Attacks PinmemberMichael W.10-Sep-04 5:38 
GeneralRe: Not Secure - SQL Injection Attacks Pinmembervipinsharma10-Sep-04 20:20 
GeneralRe: Not Secure - SQL Injection Attacks PinmemberMichael W.11-Sep-04 4:30 
GeneralRe: Not Secure - SQL Injection Attacks PinmemberColin Angus Mackay27-Sep-04 10:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 10 Sep 2004
Article Copyright 2004 by vipinsharma
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid