Why my update panel does not work?

Acid

New Member
i have an update panel that contains a checkBox and a panel, checkbox's auto postback property is true, and i want to make panel visible when checkbox is checked , but when i'm clicking on the checkbox page is refreshed :(Code:\[code\]<asp:UpdatePanel runat="server" ID="updDate"> <ContentTemplate> <tr> <td> <br/> Website Status <br/> </td> <td> <br/> <asp:CheckBox runat="server" ID="chkUnderConstruction" Text=" Is Website Active?" AutoPostBack="True"></asp:CheckBox> <br/> </td> </tr> <asp:Panel runat="server" ID="pnlDate"> <tr> <td>Activation Date</td> <td> Day: <asp:TextBox runat="server" ID="txtDate" Width="30"> </asp:TextBox> Month: <asp:TextBox runat="server" ID="TextBox1" Width="30"> </asp:TextBox> Year : <asp:TextBox runat="server" ID="TextBox2" Width="30"> </asp:TextBox> </td> </tr> </asp:Panel> </ContentTemplate> </asp:UpdatePanel>\[/code\]PageLoad code :\[code\]pnlDate.Visible = chkUnderConstruction.Checked;\[/code\]
 
Back
Top