Esempio n. 1
0
    /// <summary>
    /// valid md5 code = "9c5d111bcd4e16dda8661aae0d008485"
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void referralCodeClick_Click(object sender, EventArgs e)
    {
        if (this.IsPostBack)
        {
            IsPaymentVisible.Text            = "1";
            InvalidReferralCodeError.Visible = true;
            string referralCode = referralcodeId.Text;

            if (!string.IsNullOrEmpty(referralCode))
            {
                if (ReferralCore.IsPaidMd5Code(referralCode))
                {
                    BuyString = BuyHandler.GetBuyBlurb(Context, "3.00 - 0.15 (5% referral discount) = 2.85", true, referralCode);
                    InvalidReferralCodeError.Visible = false;
                }
            }
        }
    }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     BuyString = BuyHandler.GetBuyBlurb(Context);
 }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     BuyString = BuyHandler.GetBuyBlurb(Context, "3.00", false, string.Empty);
     //this.InvalidReferralCodeError = false;
 }