يظهر لي الخطأ عند صفحة الدخول |Log In لمشروع احمل علية حاليا
نص الخطأ Thread was being aborted
و هذا هو الكود
Try
Dim log As Integer
Dim userid As String
Dim pass As String
userid = txtUser.Text
pass = txtPass.Text
log = fn.login(userid, pass)
If log = 0 Then
pnlError.Visible = True
pnlWarning.Visible = False
ElseIf log = 1 Then
pnlError.Visible = False
pnlWarning.Visible = True
ElseIf log = 2 Then
Dim email As String
Dim department As String
Dim departmentname As String
Dim username As String
Dim premission As String
Dim active As String
Dim id As String
id = fn.geid(userid)
email = fn.getuserEmail(id)
department = fn.getdepartment(id)
departmentname = fn.getdepartmentname(department)
username = fn.getusername(id)
premission = fn.getpremission(id)
active = fn.getactivate(id)
Session("id") = id
Session("userid") = userid
Session("pass") = pass
Session("email") = email
Session("department") = department
Session("departmentname") = departmentname
Session("username") = username
Session("premission") = premission
Session("active") = active
If premission = "System Admin" Then
Response.Redirect("adminDisplay.aspx")
Else
Response.Redirect("qcpcDisplay.aspx")
End If
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try


