Saturday, March 24, 2012

Panels

Hi,

I have seen on another thread a reference to the Click event of a radiobutton. I cannot see such an event associated with my radiobuttons. Any help please?

EDIT. I have resolved the following question, but am puzzled by it.

"Any idea why the CheckChanged event of radiobuttons does not fire when they are clicked?"

I had not set the AutoPostBack property to true. BUT I had put in code, as I would in VB.NET, to prevent the radiobutton.CheckChanged event from firing when the form was reactivated and the controls reset. However, that event does not seem to fire in the reset when I set the radiobuttons.Checked property to False - which I thought would fire the CheckChanged event. Any ideas on this please?

Also resolved my other original question "How can I prevent the word "PANEL" appearing in a panel?"If you don't post back the page then the server never gets a chance to evaluate checked status. The only way to fire the event is by using the autopostback in conjunction with the control. Otherwise you have to check the status in some other controls postback.
If you don't post back the page then the server never gets a chance to evaluate checked status. The only way to fire the event is by using the autopostback in conjunction with the control. Otherwise you have to check the status in some other controls postback.

I had set the autopostback to true. My question was why didn't the checkchanged event fire when the radio buttons were reset in the load event? It would in VB.NET

0 comments:

Post a Comment