displaying div passing text from code-behind
<p>how to pass the text message along with this function to display on the div? from code behind</p>

<pre><code> &lt;div class="success" id="divStatus" runat="server" visible="false" &gt;&lt;/div&gt;


Page.ClientScript.RegisterStartupScript(this.GetType(),"somekey","function autoHide(){ setTimeout(function() {document.getlementById('"+divStatus.ClientID+"').style.display='none';},5000);};",true);
</code></pre>
