Esempio n. 1
0
    /// <summary>
    /// Next button clicked.
    /// </summary>
    protected void btnNext_Click(object sender, EventArgs e)
    {
        // Check private data
        if (ShoppingCartInfoObj.PrivateDataCleared && (CurrentStepIndex > 0))
        {
            // Go to the first step
            ShoppingCartInfoObj.PrivateDataCleared = false;
            LoadStep(0);

            // Display error
            lblError.Visible = true;
            lblError.Text    = GetString("com.shoppingcart.sessiontimedout");
            return;
        }

        // Check banned IP
        if (!BannedIPInfoProvider.IsAllowed(SiteContext.CurrentSiteName, BanControlEnum.AllNonComplete))
        {
            // Go to the first step
            LoadStep(0);

            // Display error
            lblError.Visible = true;
            lblError.Text    = GetString("General.BannedIP");
            return;
        }

        CurrentStepControl.ButtonNextClickAction();
    }
Esempio n. 2
0
    /// <summary>
    /// Next button clicked.
    /// </summary>
    protected void btnNext_Click(object sender, EventArgs e)
    {
        // Check private data
        if (ShoppingCartInfoObj.PrivateDataCleared && (CurrentStepIndex > 0))
        {
            // Go to the first step
            ShoppingCartInfoObj.PrivateDataCleared = false;
            LoadStep(0);

            // Display error
            lblError.Visible = true;
            lblError.Text    = GetString("com.shoppingcart.sessiontimedout");
            return;
        }

        CurrentStepControl.ButtonNextClickAction();
    }