Пример #1
0
        protected void Drop(String name)
        {
            String User      = name;
            int    found     = 1;
            myDAL  objmyDal1 = new myDAL();

            found = objmyDal1.dropCart_DAL(User);
            if (found == 1)
            {
                Response.Redirect("./Home.aspx");
            }
            else
            {
                Message.Text = "Error Accord";
            }
        }
 protected void DropCart_Click(object sender, EventArgs e)
 {
     if (Session["user"] != null)
     {
         String User      = Session["user"].ToString();
         int    found     = 1;
         myDAL  objmyDal1 = new myDAL();
         found = objmyDal1.dropCart_DAL(User);
         if (found == 1)
         {
             Response.Redirect("./Home.aspx");
         }
         else
         {
             Message.Text = "Error Accord";
         }
     }
 }