The interval in seconds for a timer-based save and postback event.
| C# |
public int SaveInterval { get; set; }
The AutoSave functionality, or a manual equivalent,
triggers an appropriate client-side save of the user's modifications
immediately before a postback. In most cases this is all that is
necessary.
However, if user sessions are expected to include substantial edits and continue for an extended period, it may be appropriate to also save the user modifications to the server at regular intervals.
If the SaveInterval property is set to a non-zero positive value, the client-side editor will create a client-side timer and check for modifications on each tick. If the HTML has been modified, the client-side editor will:
- Call Save(), which converts to XHTML if appropriate, and clears the modified flag
- Trigger an asyncronous postback
If the SaveInterval is set to 0, the default, no timer is created on the client.
Because asyncronous postbacks take time, the value must be set to at least 3 seconds, if not set to 0. And since frequent postbacks create a heavy load on the server, the highest value possible is recommended.