Christian Graus wrote:
either way, the variable does not persist between page loads anyhow, you need to use viewstate for that. session is to store values between pages, but it's better to put them on the URL if you can.
Correct me if I am wrong, static variables will stay alive until the application domain unloads and will persist across post-backs.
Navaneeth How to use google | Ask smart questions