I have a problem doing it for a week I'm working on and I would love to find a solution ... it is a web application in asp.net and c # I have a related listeview a database which I am inserting the students .. and I'd like not exceed 30 insertions ... the goal is that if I try to enter the 31th student I must be stopped displaying a warning message
I try Sev code which seems to me that here is the nearest that I put in my page load, but unfortunately its not working
if (ListView1.Items.Count>30)
{
ClientScript.RegisterStartupScript(this.GetType(),
"myalert",
"alert('" + "Dsl .. étudiant !!" + "');", true);
}