Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Session["vid"]           = null;
        Session["amt"]           = null;
        Session["aid"]           = null;
        Session["gt"]            = null;
        Session["pc"]            = null;
        Session["agentemail"]    = null;
        Session["cname"]         = null;
        Session["agentpnumber"]  = null;
        Session["product_title"] = null;
        Session["xapplication"]  = null;
        Session["pwalletID"]     = null;
        Session["xapplication"]  = null;
        Session["fee_detailsID"] = null;
        Session["item_code"]     = null;
        Session["hwalletID"]     = null;
        string str = Server.MapPath("~/");

        transID       = Request.Params["transID"];
        amt           = Request.Params["amt"];
        agent         = Request.Params["agent"];
        xgt           = Request.Params["xgt"];
        pc            = Request.Params["pc"];
        hwalletID     = Request.Params["hwalletID"];
        fee_detailsID = Request.Params["fee_detailsID"];
        if ((Request.Params["cname"] != null) && Request.Params["cname"].Contains("%26"))
        {
            cname = Request.Params["cname"].Replace("%26", "&");
        }
        else
        {
            cname = Request.Params["cname"];
        }
        agentemail   = Request.Params["agentemail"];
        agentpnumber = Request.Params["agentpnumber"];
        if ((Request.Params["product_title"] != null) && Request.Params["product_title"].Contains("%26"))
        {
            product_title = Request.Params["product_title"].Replace("%26", "&");
        }
        else
        {
            product_title = Request.Params["product_title"];
        }
        Session["hwalletID"]     = hwalletID;
        Session["fee_detailsID"] = fee_detailsID;
        if (((((transID != "") && (amt != "")) && ((agent != "") && (xgt != ""))) && (((cname != "") && (agentemail != "")) && ((agentpnumber != "") && (product_title != "")))) && (pc != ""))
        {
            if (Session["xapplication"] != null)
            {
                xapplication = Session["xapplication"].ToString();
                if (xapplication != transID)
                {
                }
            }
            else
            {
                Session["xapplication"] = transID;
            }
            Session["vid"]           = transID;
            Session["amt"]           = amt;
            Session["aid"]           = agent;
            Session["gt"]            = xgt;
            Session["pc"]            = pc;
            Session["agentemail"]    = agentemail;
            Session["cname"]         = cname;
            Session["agentpnumber"]  = agentpnumber;
            Session["product_title"] = product_title;
            Session["serverpath"]    = str;
            if (t.getStageIDByvalidationID(transID.Trim()) > 0)
            {
                Response.Redirect("./xxreturn.aspx");
            }
        }
        else
        {
            Response.Redirect("http://ipo.cldng.com/a_login.aspx");
        }
    }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if ((!Page.IsPostBack))
     {
         string serverpath = Server.MapPath("~/");
         transID          = Request.Params["transID"];
         amt              = Request.Params["amt"];
         agent            = Request.Params["agent"];
         cname            = Request.Params["cname"];
         applicantname    = Request.Params["applicantname"];
         applicantemail   = Request.Params["applicantemail"];
         applicantpnumber = Request.Params["applicantpnumber"];
         applicant_addy   = Request.Params["applicant_addy"];
         item_code        = Request.Params["item_code"];
         fee_detailsID    = Request.Params["fee_detailsID"];
         xgt              = Request.Params["xgt"];
         pc            = Request.Params["pc"];
         hwalletID     = Request.Params["hwalletID"];
         fee_detailsID = Request.Params["fee_detailsID"];
         if ((Request.Params["agentname"] != null) && Request.Params["agentname"].Contains("%26"))
         {
             agentname = Request.Params["agentname"].Replace("%26", "&");
         }
         else
         {
             agentname = Request.Params["agentname"];
         }
         agentemail   = Request.Params["agentemail"];
         agentpnumber = Request.Params["agentpnumber"];
         if ((Request.Params["product_title"] != null) && Request.Params["product_title"].Contains("%26"))
         {
             product_title = Request.Params["product_title"].Replace("%26", "&");
         }
         else
         {
             product_title = Request.Params["product_title"];
         }
         Session["hwalletID"]     = hwalletID;
         Session["fee_detailsID"] = fee_detailsID;
         if (((((transID != "") && (amt != "")) && ((agent != "") && (xgt != ""))) && (((agentname != "") && (agentemail != "")) && ((agentpnumber != "") && (product_title != "")))) && (pc != ""))
         {
             if (Session["xapplication"] != null)
             {
                 xapplication = Session["xapplication"].ToString();
                 if (xapplication != transID)
                 {
                 }
             }
             else
             {
                 Session["xapplication"] = transID;
             }
             Session["vid"]           = transID;
             Session["amt"]           = amt;
             Session["aid"]           = agent;
             Session["gt"]            = xgt;
             Session["pc"]            = pc;
             Session["agentemail"]    = agentemail;
             Session["agentname"]     = agentname;
             Session["agentpnumber"]  = agentpnumber;
             Session["product_title"] = product_title;
             Session["fee_detailsID"] = fee_detailsID;
             if (transID != null)
             {
                 if (t.getStageIDByvalidationID(transID) > 0)
                 {
                     Response.Redirect("./xreturn.aspx");
                 }
                 else
                 {
                 }
             }
         }
         else
         {
             if ((hwalletID != null) && (Convert.ToInt32(hwalletID) > 0))//From Portal B i.e ipo.cldng.com
             {
                 Response.Redirect("http://ipo.cldng.com/a_login.aspx");
             }
             else
             {
                 Response.Redirect("http://www.iponigeria.com/userarea/dashboard");
             }
         }
     }
     else
     {
         if ((Session["pc"] != null) && (Session["pc"].ToString() != ""))
         {
             pc = Session["pc"].ToString();
             if (pc == "P001")
             {
                 loa_newfilename = "0"; claim_newfilename = "0"; pct_newfilename = "0"; doa_newfilename = "0"; spec_newfilename = "0";
             }
             else
             {
                 loa_newfilename = "0"; claim_newfilename = "0"; pct_newfilename = "1"; doa_newfilename = "1"; spec_newfilename = "0";
             }
         }
     }
 }