detect user actions

0
0

I have a timer running on the server to do something after a period of inactivity, but I need to reset it whenever the user does something inside the form in the browser (like a button click).

Any suggestions on how to accomplish this without having to do it inside every single possible user event on the form’s controls?

Thanks

 

  • You must to post comments
0
0

Subscribe to Application.BeginRequest in Form.Load and remember to unsubscribe in Form.Disposed since it’s static event and will hold on the reference preventing GC.
You may also handle Application.SessionTimeout instead. It will fire after a period of inactivity and before the session is actually teminated. If you set e.Handled = true Wisej will not show the built-in form and you can show your own.

 

 

  • Orel Gabay
    Hi Luca ! Joins the question of Ray. Can you attache a little sample please ? it will be great ! Thanks. Orel
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.