how to pass the text message along with this function to display on the div? from code behind
<div class="success" id="divStatus" runat="server" visible="false" ></div>
Page.ClientScript.RegisterStartupScript(this.GetType(),"somekey","function autoHide(){ setTimeout(function() {document.getlementById('"+divStatus.ClientID+"').style.display='none';},5000);};",true);
You can do this:
The effect will be: Change the inner HTML of the divStatus div to say “You are done” and then it will disappear the div after 5 seconds.