asp.net - Auto-saving in VB.NET after inactivity -


I am in the best way to accomplish this. I am running a VB.NET web application that will automatically redirect to a main index page after about 20 minutes of inactivity. Before this redirection I want to "autosave" our SQL server. But I can not understand any way to trigger this save function before redirecting. What would be the best solution for this, provided I need to keep my current code the same?

  Protected sub page_load (e-mail as an object in the form of vilely sender, eventAg) Javascript ClientScript.RegisterClientScriptBlock (Me.GetType) to reload the page after 20 minutes of inactivity (), "Script", "& lt; script language = 'javascript'> setTimeout (function () {window.location = 'http: // www. Txicology.org / ai / meet / master / adminMtgsdept.aspx ';}, 1200000); & lt; / script & gt; ")  

Is AJAX an Option? You can use AJAX control toolkit timer controls to trigger the server-side method that saves your data. The timer should be reset after each postback, so if someone walks, then it should set fire after its interval.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -