I am trying to figure out a way to save a target url to a variable on the unload event so I can past it as a postback __eventargument.
Unload event code:
I am using the page_load event to call a server-side method used to remove records locks... A little unorthodox I know, but the only work around I could think of to solve my dilema of lingering record locks due to users manually leaving a page instead of clicking the "Done" button that would normally remove the locks.
Any suggestions on how I can get the target URL using javascript?
(This is an Asp.NET web app with vb.net code behind.)
thanks in advance
Unload event code:
Code:
<script language="Javascript">
function Save(){
var url = [b]Code to get target url[/b]
window.execScript(__doPostBack("RemoveLocks", url))
}
</script>
I am using the page_load event to call a server-side method used to remove records locks... A little unorthodox I know, but the only work around I could think of to solve my dilema of lingering record locks due to users manually leaving a page instead of clicking the "Done" button that would normally remove the locks.
Any suggestions on how I can get the target URL using javascript?
(This is an Asp.NET web app with vb.net code behind.)
thanks in advance