Register the onclick event for a Radiobuttonlist
If you need to set the onclick client event for each radio button in a Radiobuttonlist, it's not obvious.
This page was usefull for me, although it contains a solution for ASP.NET 1.
In ASP.NET 2 I ended up doing something similar but using Page.ClientScript and document.getElementsByName('<%rbl.UniqueID%>'); and then setting the onclick event dynamically.
You need to give a function reference to the event and inside the function you can use "this" to accerss the radio button properties.
Etiquetas: asp.net
0 Comments:
Enviar um comentário
<< Home