 <p>if you want to use jQuery see below</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;title&gt;&lt;/title&gt; &lt;script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { if ($("#divItemDetails").text().length &gt; 0) { $('#RepeaterDiv').show(); } }); &lt;/script&gt; &lt;div style="overflow: hidden; display: none" id="RepeaterDiv"&gt; &lt;asp:Repeater runat="server" ID="RepeaterID" DataSourceID="RepeaterDataSource"&gt; &lt;HeaderTemplate&gt; All Names &lt;/br&gt; &lt;/HeaderTemplate&gt; &lt;ItemTemplate&gt; &lt;/br&gt; &lt;div id="divItemDetails"&gt; &lt;%# Container.DataItem%&gt; &lt;/div&gt; &lt;/br&gt; &lt;/ItemTemplate&gt; &lt;/asp:Repeater&gt; &lt;asp:ObjectDataSource runat="server" ID="RepeaterDataSource" SelectMethod="GetAllEmployees" TypeName="MyCustomBAL" /&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>