Hi all
I am doing a simple secured site using the login control. I would like users to be redirected to their dashboard page once they log in, but after that if they choose to browse I do NOT want them redirected based on their login status. I am using the generic template provided in VWD with the basic login setup in the template including the tabbed ASP menu control - nothing fancy, nothing custom. This is intended to be something very simple and quick. Here is the code I am using for the page load...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Page.IsPostBack Then
If (Request.IsAuthenticated = True) Then
Response.Redirect("~\MemberPages\MyDashboard.aspx")
End If
End If
End Sub
So if I do this code WITHOUT the "IsPostBack", logged in users are always redirected to their dashboard and cann ...
Go to the complete details ...