Re: FormsAuthentication.RedirectFromLoginPage is not redirecting to the correct page.



I handle this kind of functionality in a Session variable
(Page.Session("ReturnURL")). I set this value to the
Request.URL.ToString() in the header.ascx control that's placed on all
my pages. If this Session variable = Nothing when I exec the login
procedure, then I redirect to the default page, otherwise I redirect
to the URL stored in the Session variable. There's some other code in
there to disregard the login page as a RedirectURL and some other
functionality that was needed but not necessarily pertinent to this
case.
HTH

.



Relevant Pages

  • Re: .NET forms authentication role-based redirection?
    ... I would consider using a Login View control. ... means of a redirect (maybe examine the Response object to determine this. ... If the page is NOT a redirect you could display some ... I think a View control would probably work easiest. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Basic Security
    ... If you want to control where the user is redirected on login, ... "Chris Kennedy" wrote in message ... Why doesn't .net apply the same redirect rules to login page ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to redirect page in windows application?
    ... The best route to go with logins is to use your main.vb to instantiate an instance of ... dim x as new login ... <showdialog forces you to be close the form before it returns control> ... | In asp.net, I use Response.Redirect to redirect pages, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: HELP I am about to quit on AS2005
    ... I miss Undo/Redo functionality in VS2005. ... make comlex involving stuff a breeze, but at the expense of control on the ... I feel the MDX syntax needs more ... SQL server manager managegement studio and MDX for data access. ...
    (microsoft.public.sqlserver.olap)
  • Re: Moving MsgBox
    ... you need to provide the same functionality which includes ... The taskswapper is a fully functional, ... necessary to use it as an OCX, and compiled the AX control. ... Memory footprint or combined file sizes? ...
    (microsoft.public.vb.general.discussion)