I have a public variable declared in the declaration section of the webclass module.

It seems when I run the code, the variable gets resetted after a MyTemplate.WriteTemplate action. Is this true? Anyone know why? Any solution?