Click here to Skip to main content
15,895,462 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I have website ,in that if web form is close using browser close button(X) or ALT + F4,that time i need clear some files form specific folder in asp.net using vb.

Note:In page load event i will paste files in that folder,so when close browser i need to clear that file.I can't use page unload event,bcz when page load and finish it call unload event also.I need only close browser or Alt+F4 need to clear files.


Regards
Aravind
Posted
Updated 30-Sep-14 23:33pm
v2

1 solution

Are you storing files on the server or the local machine.
 
Share this answer
 
Comments
Nelek 1-Oct-14 7:18am    
Please don't post solutions to chat with people asking or answering. The messages are not always sorted by date, so it can be a bit difficult to follow them correctly.
The best option is to use the "Have a question or comment?" (or the tiny "reply" on another comment). Another advantage is, that the person you write to will get a notification, otherwise it could be that he/she doesn't see your additional message.
Aravindba 1-Oct-14 7:53am    
Yes thank ur suggestion.
Aravindba 1-Oct-14 7:58am    
Hi pls click question or comments and ask any questions,anyway,i am save file in server,I know how delete file form folder,So how to call that vb code when browser close.I know how can get browser close or Alt+F4 click event in javascript.

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