home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
iPhone
/
login.aspx.vb
< prev
next >
Wrap
Text File
|
2012-03-03
|
2KB
|
52 lines
Imports System.Data.OleDb
Partial Class iPhoneNet_Default
Inherits AspNetMaker7_tfpssnet
Public tmpUserName As String
Public tmpPassword As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
If Request.Cookies("TFProduction") Is Nothing Then
tmpUserName = ""
Else
tmpUserName = Request.Cookies("TFProduction")("username")
username.Text = tmpUserName
End If
End If
End Sub
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim tmpEmpName As String, tmpEmpID As Integer, tmpEmail As String
tmpUserName = Request.Form("username")
tmpPassword = Request.Form("password")
tmpEmpName = ""
Dim tlcsub As New AspNetMaker7_tfpssnet
Call tlcsub.tlcGetEmployeeLogin(tmpUserName, tmpPassword, tmpEmpName, tmpEmpID)
If Not IsDBNull(tmpEmpID) Then
Session("TFProduction_Status_UserName") = tmpUserName
Session("TFProduction_Status_UserID") = tmpEmpName
Session("TFProduction_Status_EmpID") = tmpEmpID
tmpEmail = tlcsub.tlcGetEmployeeEmail(tmpEmpID)
Session("tfpssnet_Status_Email") = tmpEmail
Response.Cookies("TFProduction")("username") = tmpUserName
If tlcsub.tlcGetUnRecCount(tmpUserName) > 0 Then
Response.Redirect("schedule2.aspx")
Else
Response.Redirect("default.aspx")
End If
Else
Session("TFProduction_Status_UserName") = ""
Session("TFProduction_Status_UserID") = ""
Session("TFProduction_Status_EmpID") = ""
Response.Redirect("nologin.aspx")
End If
End Sub
End Class