Dim _logName = Trim(LoginName.Text) Dim _pwd = Trim(Password.Text) If Me.ValidateUser(_logName, _pwd) = True Then 'display users etails Dim mpLabel As Label mpLabel = CType(Master.FindControl("userLoginName "), Label) 'change the userLoginName text to: your login is successfull + user Name mpLabel.Text = "your login is successfull" & _logName 'Redirect user to the appropriate page If ViewState("_UserPrivilege") = "Administrator" Then Response.Redirect("~/Adminstrator/index.aspx") ElseIf ViewState("_UserPrivilege") = "Terminal User" Then Response.Redirect("~/TerminalUsers/index.aspx") End If Else StatusLabel.Text = "Please your login Name or Password is incorrect." Exit Sub End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)