This is a migrated thread and some comments may be shown as answers.

Need help with invoking code behind method when webform is closed

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Srinivas
Top achievements
Rank 1
Srinivas asked on 18 Feb 2013, 02:39 PM
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.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Feb 2013, 12:20 PM
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.
Tags
General Discussions
Asked by
Srinivas
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or