Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Redirect Customer to specific page in 9.2

  1. #1
    peter3827 is offline Senior Member
    Join Date
    Nov 2005
    Posts
    281

    Default Redirect Customer to specific page in 9.2

    I'm trying to redirect customers to a specific page when they login, in 9.2. I've replaced where it says default.aspx inside the signin.aspx.cs but it still redirects to the home page. Is there somewhere else I have to change this? I have the source code so any help will do. Thanks.

  2. #2
    bradg is offline Junior Member
    Join Date
    May 2012
    Posts
    13

    Default

    You should change this is controls/signin.ascx.cs not signin.aspx.cs. Look for this:

    Code:
    if (sReturnURL.Length == 0 || sReturnURL == "signin.aspx")
                            {
                                if (cbDoingCheckout.Checked)
                                {
                                    sReturnURL = "~/shoppingcart.aspx";
                                }
                                else
                                {
                                    sReturnURL = "~/default.aspx";
                                }
                            }
                            Response.AddHeader("REFRESH", "1; URL=" + Server.UrlDecode(sReturnURL));
    
                            ctrlRecoverPassword.Visible = false;
                        }