M
M B HONG 20
I am working on an ASP.NET web application (C#), and need a web form to
either save data on a click of the "X" (Top right corner of the
browser) or just disable the "X" altogether. I have a "Save" button
which is tied to a C# event which saves all of my data via from
sessions, or from the form directly etc., but i need it to save the
data in the event that the user decides to close it with the "X". I am
aware of the browser's native onClose property, but I am not sure if it
can call a C# command from there, and also if it can call a C# command,
does that C# command have access to the form's fields? Any help would
be greatly appreciated.
either save data on a click of the "X" (Top right corner of the
browser) or just disable the "X" altogether. I have a "Save" button
which is tied to a C# event which saves all of my data via from
sessions, or from the form directly etc., but i need it to save the
data in the event that the user decides to close it with the "X". I am
aware of the browser's native onClose property, but I am not sure if it
can call a C# command from there, and also if it can call a C# command,
does that C# command have access to the form's fields? Any help would
be greatly appreciated.