protected void btnModificar_Click(object sender, EventArgs e)
 {
     try
     {
         if (Validar() == true)
         {
             NegocioCategoria Negocio = new NegocioCategoria();
             var CategoriaVieja       = txtCategoria.Text;
             var CategoriaNueva       = txtModificar.Text;
             Negocio.ModificarCategoria(CategoriaVieja, CategoriaNueva);
             Response.Redirect("ABMLCategoria.aspx");
         }
         else
         {
             string script = @"<script type='text/javascript'>
                     alert('Error campos vacios.');
                 </script>";
             ScriptManager.RegisterStartupScript(this, typeof(Page), "alerta", script, false);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }