Wednesday 23 January 2013

Operation is not valid due to the current state of the object

Find Element with javascipt/jquery1.

Auto refresh webpage in Asp.Net c#

  • You can simply add following line of code in the Header section to enable auto refresh in an ASP.NET web page.
        <meta http-equiv="refresh" content="15">

  • Use JavaScript's SetTimeOut Function Like this:
        SetTimeOut(5000, window.location.reload(true);); 

  • If you want to set the refresh time dynamically then that can be done in ASP.NET by adding server side code in the Page_Load function to set it, as shown below: 
        Response.AppendHeader("Refresh", "15")