예제 #1
0
    protected void BtnModalDeleteUseronRuta_Click(object sender, EventArgs e)
    {
        string confirmValor = Request.Form["confirm_value"];

        if (confirmValor == "si")
        {
            TokenClass token = new TokenClass();
            logClass = new LogClass();

            if (logClass.AnularAsignUser(HdnIdAsignUser.Value, token.TokenId))
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "none", "<script> $(document).ready(alert('Se ha eliminado con éxito'));</script>", false);
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "none", "<script> $(document).ready(alert('Hubo un error, favor intentelo más tarde.'));</script>", false);
            }
        }
    }