public ActionResult MostrarIncompletas() { string tabla = ""; DataTable tareas = tarea.TareasIncompletas(); for (int i = 0; i < tareas.Rows.Count; i++) { string temp = "<li class='todo-list-item'><div class='checkbox'><label for='checkbox-1'>" + tareas.Rows[i][1] + " - " + tareas.Rows[i][2] + "</label></div></li>"; tabla += temp; } return(Json(tabla, JsonRequestBehavior.AllowGet)); }