Hello. I am currently using ASP on VB .NET and I cannot login go to the next

page.

Here is the code:

VB Code:
  1. Session("UserAuthenticated") = FALSE
  2. If Len(Request.QueryString("cmdLogin")) <> 0 Then
  3.     'dim chkLogin
  4.     Dim txtUsername, txtPassword
  5.     txtUsername = Request.QueryString("txtUsername")
  6.     txtPassword = Request.QueryString("txtPassword")   
  7.     chkLogin = SQLhrd("SELECT * FROM l_login WHERE emp_number = '" & txtUsername & "' AND " & _
  8.     "password = '" & txtPassword & "'")
  9.     If chkLogin.EOF Then    %>
  10.         <script language="javascript">
  11.         alert('Invalid Entry\nIncorrect Login ID or Password');
  12.         </script>
  13.         <%  Else
  14.         Session("UserAuthenticated") = TRUE
  15.         Response.Redirect("main_admin.aspx?username=" & txtUsername)
  16.     End If     
  17. End If  %>

Notice that I cannot use set on chkLogin. What alternatives will I have to do?