Adding a CheckChanged event handler to CheckBox inside a dynamically added UserControl?

When I put a breakpoint inside CheckBox_CheckedChanged it's never hit when the my checkbox gets clicked If you want the event to fire when the check box gets clicked, you also need to set AutoPostBack = true on the check box. If you put the cursor in the text box and press return (causing a post back), does the event fire?

When I put a breakpoint inside CheckBox_CheckedChanged it's never hit when the my checkbox gets clicked. " If you want the event to fire when the check box gets clicked, you also need to set AutoPostBack = true on the check box. If you put the cursor in the text box and press return (causing a post back), does the event fire?

Yep. That was it. Thank you!

– Ozzie Perez Oct 1 '09 at 13:55.

Add the CheckBox. AutoPostBack property and set it to "true". CheckBox cb = ((CheckBox)myPanel.

FindControl(c1. ID). FindControl(c1.

CheckBoxID)); if(cb! = null) { cb. AutoPostBack = true; }.

Of course! Thank you. – Ozzie Perez Oct 1 '09 at 13:54.

When I put a breakpoint inside CheckBox_CheckedChanged it's never hit when the my checkbox gets clicked. So, it doesn't seem to be picking up when I add the event handler. It's weird, cause it picks up everything else though.

Am I missing something?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions