Hi all, <BR>I am newbie to VB and ASP.well, i am trying to write code for a login module , but finding it difficult.got stuck up.<BR>I am working on the visualstudio.net beta2 version.<BR>this is the code.<BR>Public Sub Button_Click (sender as Object, E as EventArgs)<BR><BR> Dim mydataset As New DataSet()<BR><BR> Dim myconn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLED B.4.0;data source=d:gayatrijunk est1.mdb;")<BR> myconn.Open()<BR> If myconn.State = 1 Then<BR><BR> Response.Write("connected")<BR> ElseIf myconn.State = 0 Then<BR><BR> Response.Write("not connected")<BR> End If<BR> <BR><BR> Dim adapter As New OleDb.OleDbDataAdapter("select * from student where stud-id <BR>= &#039;"& loginbox.Text &"&#039; and password = &#039;"&pwdbox.Text&"&#039;" , myconn)<BR>Till here i could write the code , after this i am not able to go any further.please help me out.<BR>thankyou in advance<BR>bye<BR>gayatri