protected void grdQuestaoRespostaCurso_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.Equals("Excluir")) { string idCurso = e.CommandArgument.ToString(); if (!String.IsNullOrEmpty(idCurso)) { cursocont = new CursoController(); try { cursocont.ExcluirCursoRespostaQuestao(idresposta, idquestao, Convert.ToInt32(idCurso)); CarregargrdQuestaoRespostaCurso(); } catch { } } } }