puoi usare un ciclo usando addhandler e collegarlo all'evento che vuoi.