Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
Partial Class login2 Inherits System.Web.UI.Page Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click Dim Conn As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("/App_Data/mydatabase.mdb") & ";Persist Security Info=False;" Dim sql As String = "Select * from Mydatabase WHERE username=" & txtUserName.Text & "AND password=" & txtPassword.Text '-- and now I'm stucked :-( '-- Dim cn As New ????????? cn.open() End Sub End Class
Join the community of 500,000 technology professionals and ask your questions.