Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
AsSystem.EventArgs)
Handles Button1.Click

Dim TextName As String

Dim Textpass As String



TextName = "gagan"

Textpass = "thesky"

If (TextBox1.Text = TextName) And (TextBox2.Text = Textpass) Then

MsgBox("you are valid user, thx for login")

Else

MsgBox("pls, enter correct username and password")

TextBox1.Clear()

TextBox2.Clear()

End If

 End Sub


On Tue, May 12, 2009 at 12:00 PM, VIKAS GARG <[email protected]>wrote:

> You can use any algo for this....
> The one I implement is
> 1.. Get the text of the User_Name & Pass_Word textBoxes
> 2.. Retrieve the existing password with that userName from the database
> 3.. Check if the Password in your database is equal to the password which
> you have get from the Pass_Word textBox
> *"DONE"*
>



-- 
GO and LEAD from Whereever You are.
Think Big and Think Fast.

Reply via email to