I am creating a login page using Vb.net ... i have written coding but it shows some Error ..
Here is mine coding ..
..
Dim DataClass As New DataClassesDataContext
Dim l = From Users In DataClass.Users _
Where (Function(x) x.UserName = txtUserName.Text
And x.Password = txtPassword.Text).ToList
If l.Count = 1 Then
Session("username") = txtUserName.Text
Response.Redirect("Masters.aspx")
Else
lb(Msg.Text =("Invalid Login!")
End If
...
I am having Error on line 3 , 4 and 7 ..i think the function i created is right ..but it shows errors
Could any one guide me ..
Thank you