tryiong to count number of times a page loads.

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

Hi
I am trying to count the number of times a page loads. When I hit the submit
button I can get the page to count once using ispostback to check . I am
trying to incriment a variable everytime the page loads. It will only do it
one time even if I put the
variable = variable + 1
statement into the button click event.

Any ideas as to how to count the number of times a page loads?
Thanks
Mark
 
Are you saving the value of variable when you make the round-trip? If you
just do Dim Variable as Integer, the value it set back to 0 each time the
page loads. Try saving it to a hidden text box. There are better ways to
do it, but I'm not familiar with them since I don't do much ASP.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top