protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            HttpCookieCollection objHttpCookieCollection = Request.Cookies;
            HttpCookie           objHttpCookie2          = objHttpCookieCollection.Get("MatCookie5639sb");

            string strMtaID = Crypto.DeCrypto(objHttpCookie2.Values["MatrimonialID"]);

            HttpCookieCollection objHttpCookieCollection2 = Request.Cookies;
            HttpCookie           objHttpCookie            = objHttpCookieCollection.Get("ebanker");

            sbyte PlanID = sbyte.Parse(Crypto.DeCrypto(objHttpCookie.Values["PLanID"]));

            if (Crypto.DeCrypto(objHttpCookie2.Values["UserType"]).ToLower() != "paidmember")
            {
                MatrimonialProfileManager.InsertPaidMember(strMtaID, PlanID);
            }
            else
            {
                MatrimonialMemberShip.RenewPaidMembership(strMtaID, PlanID);
            }
            Response.Redirect("~/Member/Membership.aspx");
        }
        catch (Exception)
        { }
    }
Пример #2
0
 protected void B_Renew_Click(object sender, EventArgs e)
 {
     if (RB_MemberPlan1.Checked)
     {
         MatrimonialMemberShip.RenewPaidMembership(HF_ID.Value, 1);
         L_Report_1.Text        = "Membership Renewed";
         L_Report_1.Visible     = true;
         B_App.Visible          = false;
         B_Renew.Visible        = false;
         RB_MemberPlan1.Visible = false;
         RB_MemberPlan2.Visible = false;
         RB_MemberPlan3.Visible = false;
         RB_MemberFree.Visible  = false;
     }
     else if (RB_MemberPlan2.Checked)
     {
         MatrimonialMemberShip.RenewPaidMembership(HF_ID.Value, 2);
         L_Report_1.Text        = "Membership Renewed";
         L_Report_1.Visible     = true;
         B_App.Visible          = false;
         B_Renew.Visible        = false;
         RB_MemberPlan1.Visible = false;
         RB_MemberPlan2.Visible = false;
         RB_MemberPlan3.Visible = false;
         RB_MemberFree.Visible  = false;
     }
     else if (RB_MemberPlan3.Checked)
     {
         MatrimonialMemberShip.RenewPaidMembership(HF_ID.Value, 3);
         L_Report_1.Text        = "Membership Renewed";
         L_Report_1.Visible     = true;
         B_App.Visible          = false;
         B_Renew.Visible        = false;
         RB_MemberPlan1.Visible = false;
         RB_MemberPlan2.Visible = false;
         RB_MemberPlan3.Visible = false;
         RB_MemberFree.Visible  = false;
     }
     else if (RB_MemberFree.Checked)
     {
         MatrimonialMemberShip.RenewPaidMembership(HF_ID.Value, 0);
         L_Report_1.Text        = "Membership Removed";
         L_Report_1.Visible     = true;
         B_App.Visible          = false;
         B_Renew.Visible        = false;
         RB_MemberPlan1.Visible = false;
         RB_MemberPlan2.Visible = false;
         RB_MemberPlan3.Visible = false;
         RB_MemberFree.Visible  = false;
     }
 }