title: VB.net session variable counter not adding on
body: <p>I have a master page with the following vb code in the code file...</p>
  
  <pre><code>Public Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs)
  
      If Not IsPostBack Then
          If Session("key") Is Nothing Then
              Session("key") = 0
          Else
              Session("key") = Session("key") + 1
          End If  
          Response.write(Session("key"))
          LoadData()
      End If
  
  End Sub
  </code></pre>
  
  <p>This should write a number to the top of each page saying how many pages have been visited... It stays at zero all the time though.</p>
  
  <p>Any ideas??</p>