Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8732067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:22:17+00:00 2026-06-13T09:22:17+00:00

How to autosave a web form in every 10 seconds till the user log

  • 0

How to autosave a web form in every 10 seconds till the user log out. Is there any method using system.thread.sleep class.? Or is there any other feasible method to achieve this. I am using .net 2.0. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:22:18+00:00Added an answer on June 13, 2026 at 9:22 am

    As a hint to help you move on, and using jQuery here is some code:

    var ajxAutoSaveTimer = null;
    
    function TriggerChanges()
    {
       if(ajxAutoSaveTimer)
         clearTimeout(ajxAutoSaveTimer);
    
       ajxAutoSaveTimer = setTimeout(MakeAutoSave, 10000);
    }
    
    function MakeAutoSave()
    {
      // fix the data that you going to send here.
    
      jQuery.ajax({
            url: "PageName.aspx/MethodName",
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            cache: false,
            success: function(data) 
            {
              // you can make a tiny notification here
              return;
            }
            error: function(responseText, textStatus, XMLHttpRequest) {             
                    return;
                }
        });
    }
    
    jQuery(document).ready(function() {
        jQuery(":input:not(*[ExcludeFromNotice])").bind('change', TriggerChanges);
    });
    

    Now what I do here.
    Starting with this line, I capture all the input that are the changes by the user controls. All exept the one that I have flagged with ExcludeFromNotice because some of them I do not won to be part of the autosave process.

    jQuery(":input:not(*[ExcludeFromNotice])").bind('change', TriggerChanges);
    

    you can set that to a control as "ExcludeFromNotice=true" on properties. Alternative you can set a class only to the controls you like to be part of the auto-save notification.

    Now on TriggerChanges() what I do is to create a time that is fired after 10sec that user not make other changes.

    And the rest part that is the most difficult, if the MakeAutoSave(), there you need to collect and post the autosaved data.

    Some extra pages that can help you make the ajax call that saves the data:
    http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/
    How to post form data in asp.net using ajax

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing a relatively simple autosave system and I'd like to do so using
Is there any way to autosave the buffer before issuing :make? I use MacVim
Is there any AutoSave kind of option in SQL Server. Like i came to
I'm having hard time trying to figure out how to auto-save user data in
I'm using localstorage to do gmail-style autosave on a webpage. So I basically save
I've got a class that represents a document (GH_Document). GH_Document has an AutoSave method
Every now and then I find web applications that have some sort of article
How can I implements autosave for EditText ? I need to save when user
I have a form with several fields that has a jquery autosave function that
I was previously using the jQuery autosave plugin but have recently removed it. Some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.