Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FormsAuthentication.RedirectFromLoginPage question

Status
Not open for further replies.

rds80

Programmer
Nov 2, 2006
124
0
0
US
If I put a breakpoint on this line of code:
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
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?
 
Are you using visual studio or visual web developer express.
Also, Are you using your own login or the asp.net login control part of the membership provider?

Bob B.
 
Using Visual Studio .NET 2003.
If you're asking whether my windows login is a aspnet debugger, then no it isn't.
Sorry I'm a newbie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top