I'm trying to hide a asp.net panel on click a button.
JavaScript and controls I used
<script type="text/javascript">
function ShowPanel ()
{
document.getElementById("<%= pnlCombinedPdf.ClientID %>").style.display = "none";
}
</script>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="ShowPanel()"/>
<asp:Panel ID="pnlCombinedPdf" runat="server" Visible="false">
<fieldset>
<legend class="SubSectionHeading">Merge PDF</legend>
<table style="width: 100%">
<tr>
<td>
<asp:Button ID="btnMergePdf" runat="server" Text="Merge PDF"/>
</td>
</tr>
</table>
</fieldset>
</asp:Panel>
But the problem is it does not show the panel after clicked the button. Please help me make it visible on click.
displayproperty fromnonetoblock.