Пример #1
0
    protected void BtnActivar_Click(object sender, EventArgs e)
    {
        string confirmValor = Request.Form["confirm_value"];

        if (confirmValor == "si")
        {
            token        = new TokenClass();
            idinventario = HdnIdInv.Value;
            LogClass logClass = new LogClass();
            logClass.NullorCloseInventario(idinventario, token.TokenId, "Activar");
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "none", "<script> $(document).ready(function () {alert('El inventario " + HdnNameInv.Value + " ha sido \"ACTIVADO\" con éxito.');});</script>", false);
        }
    }