How to display login failure text if user logging in user role id differ than vendors role ...
i m using the following code to authenticate user role during logging in
Protected Sub Login3_LoggingIn(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.LoginCancelEventArgs) Handles Login3.LoggingIn
Dim user As TextBox = Me.Login3.FindControl("UserName")
If Roles.IsUserInRole(user.Text, "Vendors") Then
Login3.DestinationPageUrl = ("~/vendors/select_service.aspx")
Else
Login3.DestinationPageUrl = ("~/login.aspx")
End If
End Sub