call code behind method from window.onbeforeunload?
<p>I would like execute code behind method <strong>(like save data to database)</strong> from window.onbeforeunload. I cann't use PageMethods because of <strong>non-sharedmembers (txtboxed, cmbboxes etc)</strong> in the save method. How to handle this situation? It is literally killing my time. </p>

<p>Please help me out.</p>
