display page counter in HTML page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • John Alexander
    New Member
    • Dec 2011
    • 38

    display page counter in HTML page

    I have ASP file that reads in the text file that holds the page count. It then increments by 1 and writes it back to the text file. This file works by itself when I type http:\\localhos t\updatecounter .asp. I need to know how to access this value in a HTML page. I tried to use the ASP code inside the HTML page within VBScript but the opentextfile etc didn't work. I also used the include in the HTML page. Any ideas? I use IIS 7.5 and Windows 7 Professional.
  • multinett
    New Member
    • Sep 2011
    • 16

    #2
    read http://w3schools.com/asp/asp_ref_textstream.asp
    you have to read the textfile.

    Comment

    Working...