If I put a breakpoint on this line of code:
and then run the project it goes to the correct .aspx page (reports). However, if I don't have a breakpoint on that line and let the project just run it goes to the incorrect page (home).
Anyone have any suggestions on how to debug this problem?
MSDN explains RedirectFromLoginPage as "Redirects an authenticated user back to the originally requested URL or the default URL." But Home isn't the originally requested and I cant find where home is set as the default url.
Should I instead have a response.redirect?
Code:
If iResult = Framework.ErrState.S_OK Then
Session.Add("UserInfo", tdsUserInfo)
FormsAuthentication.RedirectFromLoginPage(tdsUserInfo.UserInfo(0).UserName, False)
Else
lblMessage.Text = sErrorMsg
End If
Anyone have any suggestions on how to debug this problem?
MSDN explains RedirectFromLoginPage as "Redirects an authenticated user back to the originally requested URL or the default URL." But Home isn't the originally requested and I cant find where home is set as the default url.
Should I instead have a response.redirect?