ramrocket
asked on
Checkbox in a repeater not firing event
I have a checkbox in a repeater. I need it to call my event handler in the code when the user clicks on it.
I tried onlick & onserverclick events with no luck.
<input type="checkbox" id="chkBox1" runat="server" onclick="OnClickCheckBox"
event handler:
protected void OnClickCheckBox(object oSender, EventArgs oEventArgs)
{
int x=0; << does not go here!
}
I tried onlick & onserverclick events with no luck.
<input type="checkbox" id="chkBox1" runat="server" onclick="OnClickCheckBox"
event handler:
protected void OnClickCheckBox(object oSender, EventArgs oEventArgs)
{
int x=0; << does not go here!
}
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
i think if you want to handle the event, use javascript..