Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making a chat application.I am handling the browser close event and updating the database when browser is closed.But how to update the database when a user directly changes the URL in the browser?
Posted
Updated 16-Apr-14 1:23am
v2

1 solution

not sure but you can call body onunload event on javascript side and call a webmethod from ajax json postback to pass the data to the server.
 
Share this answer
 
Comments
Sanket Saxena 16-Apr-14 8:36am    
It can be work if handled properly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900