i want to do an update when the session is finished or when the browser is closing how can i do that i tryed to do that by using global.asa file but it it's not working so how can i do that
Yes Interdev prepares the global.asa with Session Start, End and Application Start, End subroutines already written into the file. Usually only the Application Start Routine is uncommented because it has the database connection variables.
All you have to do is uncomment the Session End subroutine and add your own event-oriented script to it.
junebugblue, opening a popup window is something that happens on the client side, not the server side. global.asa (and any other ASP code) is server side, and therefore, you would not put such code in the global.asa file.
and to junebugblue, sorry about the other thread comment -- it was another member who had asked that question.
Gee --
If you are developing a highly interactive site with many different inputs and such... popups can be an extremely useful tool to use.
example:
User is entering information and choosing info from a dropdown box, but their choice isn't there.
Click a button to add a new entry. <click> Popup appears... they make a new entry, and click the close button. Once that happens, the parent page refreshes and their new entry appears in the dropdown box.
This is a great way to enforce business rules by giving users a very rigid data entry method, but offering them the functionality of adding new entries to the database. All the while, you are preserving the parent page so that they don't feel like they've gone anywhere else. Keeps the focus -- preserves look and feel, etc...
Just some random thoughts, because I used to be a very hard-core anti-popup person, too... until I realized some useful areas for them. Random ad popups are definitely the worst, though. ;-)
Oh I'm not anti-popups at all. I have to agree with every word you say. What I am against is popups that appear when you leave the site or close the browser. Generally these are used by people to try and make you visit other sites as they gain revenue for the click-through. And generally the sites that pay per click are generally ones not as reputable as this. If you get my drift
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.