Create a checkbox on server, handling function with javascript

effignest

New Member
I had created a checkbox at the server during runtime, and populated it in a table on the webpage, and I would like to make use of it to trigger some javascript to handle some functions in the client.However, I'm not sure of how to trigger the function using a checkbox created in this manner.I understand that I can trigger the function when I declare a checkbox in this syntax.asp:CheckBox ID="Checkbox1" runat="server" Onclick="javascript:myfunction()"However, this checkbox may or may not be required to be created on the webpage, and hence I'm unable to insert this hardcoded on the webpageIs there any way which I can use to detect the status of this checkbox and trigger my javascript in the client? or if i can handle what i need to do at code_behind?Regards
 
Back
Top