Simple Login using Visual Basic 2010 (SQL Server database)

Submitted by: 
Language: 
Visitors have accessed this post 73949 times.

Simple Login System using Visual Basic 2010. The File-type for its database is SQL SERVER. This Project is for beginners specially for those who are developing System and finding their security purposes for their System using in Visual Basic 2010. This is for Education purposes.

Mabuhay Filipino Programmers~!


Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Hi sir, i am a IT student and currently having my capstone. i just want to ask for simple login codes using MS Access as its Database.
this is my codes:
Imports System.Data
Imports System.Xml
Partial Class AddPage
Inherits System.Web.UI.Page
Dim dbcon As New OleDb.OleDbConnection("Provider= Microsoft.JET.OLEDB.4.0;DataSource =" & Server.MapPath("~/App_Data/MPDCOofficial.mdb"))

Dim adap As New OleDb.OleDbDataAdapter("Select from SignIn where Employee_IDnumber='" & Me.TextBox1.Text.trim & "' AND Password='" & Me.TextBox2.Text.trim & "'", dbcon)
Dim dbset As New DataSet

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
adap.Fill(dbset)
If dbset.Tables(0).DefaultView.Count > 0 Then
Session("AddPage") = dbset.Tables(0).DefaultView.Item(0).Item(3)
Response.Redirect("AddInfoPage.aspx")
Else
Response.Write("IncorrectUsername/Password")
End If

End Sub
End Class

/* but my problem is there is an error in Password are in dataadapter telling "[NullReferenceException: Object reference not set to an instance of an object.]" . What is the problem with it? thanks :)

can help me to do login code for my workshop 1 ?

sir can i help me to create a student mark analysis system visual basic source code send my email id

it will run to vb2008 ?

Thnx for the codes

i can not run the code the program send a warning letter .. this is
it : visual Studio cannot start debugging because the target 'C:\Users\faiz\Documents\bankingSystem\bin\\Debug\BankngSystem, exe is missing .Pleas bulid the project and retry, or set the OutputPath and AssemblyName properites apprpritely to point at the correct location for th trget assbly .

sir can you help me to create a simple library system in visual basic 2010, i need to pass it this week for my thesis can you send me sample code on my email :)

by the way, I forgot posting the account user:

Username: Admin and password: admin

-xGEOFFx-

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.