Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ServeAtDoorstepServiceApp.ServeAtDoorstepService objService = new ServeAtDoorstepService();

            if (Request.QueryString["type"] != null)
            {
                strType = Request.QueryString["type"].ToString();
            }
            if (Request.QueryString["id"] != null)
            {
                strId = Request.QueryString["id"].ToString();
            }
            strId = strId.Replace(" ", "+");
            int intId = Convert.ToInt32(UtilityClass.Decrypt(strId));

            if (strType == "cus")
            {
               bool boolAct = objService.ActivateCustomer(intId);
            }
            else if (strType == "ven")
            {
                bool boolAct = objService.ActivateVendor(intId);
            }
        }