Пример #1
0
 protected void grdDados_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName.Equals("Adicionar"))
     {
         string idCurso = e.CommandArgument.ToString();
         if (!String.IsNullOrEmpty(idCurso))
         {
             cursocont = new CursoController();
             try
             {
                 cursocont.InserirCursoUnidade(Convert.ToInt32(idCurso), idunidade);
                 CarregargrdCursoUnidade();
             }
             catch
             {
             }
         }
     }
 }