Hello, I'm looking for a number generator (not random). I have a certificate and I want that certificate to have a different number each time the page opens. I want that certificate to start at 1. Can someone help me with this
thanks
so you want a counter.
set a application variable to 1
in the global.asa file each session start add 1 to it and then use the value as needed.
you can find examples searching under "visitor counters asp" etc...
____________________________________________________ The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-3811
The problem with that tough, if someone restarts the server, the variables will be zeroed, so the numbers will start with 1 again. I would suggest to write out the number into a text file, read it out before you create the new number, and update it there...
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.