title: Public variable doesn't work
body: <pre><code>Public Class sample
    Public inta As Integer
    Protected Sub button1(sender As Object, e As EventArgs)
      inta = "2"
    End Sub
  
    Protected Sub button2(sender As Object, e As EventArgs)
      Response.Write(inta)
    End Sub
  End Class
  </code></pre>
  
  <p>This is a sample code behind of my aspx. It keeps on showing 0 instead of 2. The only difference in my code to this sample one is that button2 is in a modal dialog. But when i tried using this simple code it still doesn't work.. Did i do something wrong?</p>