Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing Issues

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I have a site that is alrerady developed to have all the code essentially in one page... the problem is that when a page is refreshed it executes some code again based on a users actions (inserting being the issue) How can I avoid this without stripping out all the "action" code to a separate page?

hope this makes sense....

[conehead]
 
You could set a session variable like "Session("RAN") = 1" the first time it's run and check for that variable each time the page is loaded, skipping code you don't want run if that variable is a "1".

All you would need to do is figure a way to reset that variable to 0 or nothing afterwards. Of course, if that's all the page does and the user closes it afterwards, you don't even need to worry about that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top