>All,
>
> I have a webform with a checkbox and a panel with some controls in it. I want the checkbox to show or hide the panel based on the value of the checkbox, but my code is not working. The code I have for the checkbox is below, please help.
>
>
>private void chkFlight_CheckedChanged(object sender, System.EventArgs e)
> {
> pnFlight.Visible = chkFlight.Checked;
> }
>
Jim,
Check your setting for the checkbox's AutoPostBack property. It needs to be set to True to get the behavior you need.
hth,
Kendall Webb
Senior Software Engineer
MCAD.Net/MCSD.Net