views:

27

answers:

2

Hi,

If you have several radiobuttons in a group, and you have Checked event handlers in your code behind, if a radiobutton is checked how do you cancel this event handling so that the new radiobutton clicked does not get selected and your original checked button stays checked? The code in the event handler in the code behind distinguishes this - radiobutton is clicked the event handler checks some condition, if condition is false do not check new button.

Thanks greatly in advance,

N Dean G.

+1  A: 

On Mouse PreviewDown event, you can check the condition and set e.Handled=true (IF you don't want to check or uncheck)

Ragunathan
Excellent thanks!
A: 

hai i have create one form in asp.net and get the set of radiobutton values from the sql database...that is already written in the database with answer...... how do i check the answer with the original answer in the database

honey