I have two radio buttons both set as async triggers for an update panel and problem is that first time one is clicked the CheckedChanged event fires but then no matter which
Looking at the source (in the browser), ASP.NET is only generating a post back function __doPostBack
for the RadioButton
controls which can possibly postback.
The first RadioButton
control cannot postback (because it is already checked), and as such the __doPostBack
is not generated.
A work around is to add the two RadioButton
controls to another UpdatePanel
, setting the UpdateMode
to Always. This will cause the RadioButtons to be updated (whenever they trigger the other UpdatePanel
) adding the __doPostBack
function to the deselected RadioButton
.
Example
Hope this helps.