Here is the Asp part:
<label for="chkCondition"> <asp:CheckBox ID="chkCondition" Text="Should i show the div?" runat="server" onclick="ShowHideDiv(this)" /> </label> <hr /> <div id="divToShowOrHide" style="display: none"> this div will be shown regarding the checkbox checked status. <asp:TextBox ID="myTextBox" runat="server" /> </div>
And here is the Javascript part:
<script type="text/javascript"> function ShowHideDiv(chkCondition) { var divToShowOrHide = document.getElementById("divToShowOrHide"); divToShowOrHide.style.display = chkCondition.checked ? "block" : "none"; } </script>
In this way, you can also use Devexpress LoadingPanel functions for traditional asp.net components.