Login System (ASP.NET)
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.
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
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.
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"