FormsAuthentication.RedirectFromLoginPage reload page
        Posted  
        
            by Dofs
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Dofs
        
        
        
        Published on 2009-12-21T10:25:56Z
        Indexed on 
            2010/05/15
            23:10 UTC
        
        
        Read the original article
        Hit count: 356
        
forms-authentication
|.NET
Hi,
I am using the .Net memebership system, and uptil now I haven't had any real troubles with it. I now have a overlay where a user can create a profile. When the profile is created I just want to redirect to the same page, and not to the default page or the return url - which doesn't exists.
I have tried to stop the FormsAuthentication.RedirectFromLoginPage response, but with no effect:
 FormsAuthentication.RedirectFromLoginPage(username, false);
 // End the redirect so it doesnt redirect to default url (front-page)
 Response.End();
 Response.Redirect(Request.RawUrl);
Does anyone have an idea to how this can be solved?
© Stack Overflow or respective owner