|First, format your code using the pre tags when posting. You've been around long enough to know this.
Understand that the web, and ASP.NET, is stateless. Each time a page is requested, or an action, such as a button click, causes a postback, all the variables you have declared are set to their default values unless otherwise persisted.
You will do well to pick up a book on ASP.NET and read it before proceeding.
I know the language. I've read a book. - _Madmatt