I have ASP web page with ASP code inside which I need to execute only once when user visit page, if he/she press refresh code should be ignored. How to do that?
Set a session variable that will indicate that the code doesn't need to run again, or a cookie on the client.
Can you post code example how to do that? I am new to ASP.
<% if session("alreadyRan") = "" then
' do your code
session("alreadyRan") = "true"
' don't do your code
end if %>