Hi Guys,
In my page whenever the user leaves the page I want to save all the data. So onbeforeunload event I call __dopostback('butUpdate',''). I have written a javascript function
function __dopostback(eventTarget,eventArgument) {
var theform = document.Form1;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
This some how is not working. I want to autosave when the user clicks on a different page.
Any Ideas ?
Thanks
Premal
In my page whenever the user leaves the page I want to save all the data. So onbeforeunload event I call __dopostback('butUpdate',''). I have written a javascript function
function __dopostback(eventTarget,eventArgument) {
var theform = document.Form1;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
This some how is not working. I want to autosave when the user clicks on a different page.
Any Ideas ?
Thanks
Premal