helo guys, i have a little problem here. i've always been using MS access as database to connect my vb.net applications. Now i've design a webpage in asp.net and i want to connect the login.aspx page with the sqlexpress provided in vb.net framework..can anyone help me with the steps?? just for test purpose i wrote the following code
Imports System.Data.SqlClient
Imports System.Configuration
Partial Class login
Inherits System.Web.UI.Page
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Dim sqlCon As New SqlConnection("Data Source=alvin;Initial Catalog=Database.mdf")
sqlCon.Open()
MsgBox(sqlCon.State.ToString)
sqlCon.Close()
End Sub
End Class