Need help with invoking code behind method when webform is closed

2 posts, 0 answers
  1. Srinivas
    Srinivas avatar
    1 posts
    Member since:
    Feb 2013

    Posted 18 Feb 2013 Link to this post

    Hi All,

    I am new to this Telerik world, i need some help with a task, when a aspx webform is closed, it should invoke a code behind method and i need to do some cleanup of some custom objects. Heard from my techinical lead that i shud be using RAD control to do it but never worked on it. Any help is appreciated and code samples will help..

    Thanks,
    Srinivas.
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 21 Feb 2013 Link to this post

    Hi,

    The requested functionality is not supported out-of-the box by our controls. You can use the onbeforeunload JS event and the page methods to implement your custom scenario.

    I found the following links which could be helpful:
    http://stackoverflow.com/questions/12425797/calling-asp-net-codebehind-function-from-javascript
    http://bytes.com/topic/javascript/answers/540686-calling-code-behind-function-onbeforeunload-event
    Google results.

    Kind regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top