Hi this is my code for the login Button:
Protected Sub LoginButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim cls As New AppMaster
Dim result As Boolean
result = cls.btn(Login1.UserName, Login1.Password)
If result = True Then
If isadmin = 1 Then
Response.Redirect("~/Admin/Default.aspx")
Else
Response.Redirect("~/user/user.aspx")
End If
&n ...
Go to the complete details ...