I have a method that changes the checked attribute of a checkbox like this
checkbox1.checked = true;
and then I have the eventhandler method:
checkbox1_checkedChanged(object obj, EventArgs args)
However, when I perform the changing of checked attribute to true, the event handler does not fire up.
How can I achieve this?
I suspect that your function that does checkbox1.checked = true; is running server side, so could never cause a postback.
If this is the case, and you just wish to invoke the code in your checked changed handler, you could just call the function directly, or refactor the code out into a common function.