Example #1
0
    protected void modalStatusAluno(object source, RepeaterCommandEventArgs e)
    {
        var status = "";

        switch (e.CommandName)
        {
        case "Ativar":
            status = "A";
            break;

        case "Desativar":
            status = "I";
            break;
        }
        _alunoBo = new AlunoBo();
        _alunoBo.AlterarStatusAluno(Convert.ToInt32(e.CommandArgument), status);

        ViewState["pagina"] = 0;
        CarregarAlunos();
        CarregarPaginas();
    }