protected void btncreate_Click(object sender, EventArgs e)
 {
     try
     {
         DB_Images image = new DB_Images();
         image.StrCon     = axVarSes.Lee <string>("strCon");
         image.UpdatedBy  = Convert.ToInt32(axVarSes.Lee <string>("strUserID"));
         body.StrCon      = axVarSes.Lee <string>("strCon");
         body.Name        = tbName.Text;
         body.UpdatedBy   = Convert.ToInt32(axVarSes.Lee <string>("strUserID"));
         image.ImageUrl   = tbUrl.Text;
         image.ImageTitle = tbTitle.Text;
         if (image.Insert())
         {
             DataTable dt = image.SeeByParams();
             body.ImageId = Convert.ToInt32(dt.Rows[0][0].ToString());
             if (body.Insert())
             {
                 pnOK.Visible        = true;
                 pnBodyParts.Visible = true;
                 pnmodify.Visible    = false;
                 lblOK.Text          = "Datos actualizados satisfactoriamente.";
                 cargarGrid();
             }
             else
             {
                 pnError.Visible = true;
                 lblError.Text   = "Los datos se crearon parcialmente. " + body.Message;
             }
         }
         else
         {
             pnError.Visible = true;
             lblError.Text   = "No se pudieron actualizar los datos. " + image.Message;
         }
     }
     catch (Exception ex)
     {
         pnError.Visible = true;
         lblError.Text   = "No se pudieron actualizar los datos. " + e.ToString();
     }
 }