protected void DElete_Click(object sender, EventArgs e)
 {
     try
     {
         string searchdel = delpro1.Text;
         if (searchdel != "")
         {
             string status = Delvalidator.DeleteProduct(searchdel);
             delstatus.Text = status;
         }
         else
         {
             delstatus.Text = " !!!!!!!!   ENTER PRODUCT NAME   !!!!!!!!";
         }
     }
     catch (Exception ex)
     {
         delstatus.Text = ex.Message;
     }
 }
        protected void submitalter_Click(object sender, EventArgs e)
        {
            try
            {
                string altname = alterproname.Text;

                int altnum = Int32.Parse(alterpronum.Text);

                DateTime altmanuf;
                DateTime altexpire;
                try
                {
                    altmanuf = DateTime.Parse(alterpromanuf.Text);
                }
                catch (Exception ex)
                {
                    altmanuf = DateTime.ParseExact(alterpromanuf.Text, "dd-MM-yyyy", null);
                }

                try
                {
                    altexpire = DateTime.Parse(alterproexpiry.Text);
                }
                catch (Exception ex)
                {
                    altexpire = DateTime.ParseExact(alterproexpiry.Text, "dd-MM-yyyy", null);
                }

                string sts = Delvalidator.AlterProductDetails(altname, altnum, altmanuf, altexpire);

                submitstatus.Text = sts;
            }
            catch (Exception ex)
            {
                submitstatus.Text = "ENTER DETAILS";
            }
        }