Fixes
This commit is contained in:
@@ -20,8 +20,15 @@ public partial class listar : System.Web.UI.Page
|
||||
Carrera = p.carrera.nombre,
|
||||
Seminario = p.seminario.nombre
|
||||
};
|
||||
participantes_grid.DataSource = participantes.ToList();
|
||||
participantes_grid.DataBind();
|
||||
if (participantes.Count() > 0)
|
||||
{
|
||||
participantes_grid.DataSource = participantes.ToList();
|
||||
participantes_grid.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
empty_message.Text = "No hay participantes registrados";
|
||||
}
|
||||
}
|
||||
|
||||
protected void ParticipantesRowDataBound(object sender, GridViewRowEventArgs e)
|
||||
@@ -36,6 +43,5 @@ public partial class listar : System.Web.UI.Page
|
||||
e.Row.Cells[5].Text = "Carrera";
|
||||
e.Row.Cells[6].Text = "Seminario";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user