示例#1
0
        public void Alterar(int intId, string strJogos)
        {
            try
            {
                objJogosBll = new Jogos();

                if (objJogosBll.Alterar(intId, HttpUtility.HtmlDecode(strJogos)))
                {
                    ClientScript.RegisterStartupScript(Page.GetType(), "AlterouOk", "alert('Alterou')", true);
                }
                else
                {
                    ClientScript.RegisterStartupScript(Page.GetType(), "AlterouFalhou", "alert('NAO Alterou')", true);
                }
            }
            catch (Exception ex)
            {
                ClientScript.RegisterStartupScript(Page.GetType(), "crash", "alert('ERRO!! NAO Alterou')", true);
            }
        }