>You could store the value of the variable in a cursor/array/table temporarily if you want to avoid the use of public variables - but havinbg it as a public variable is your best bet.
Martin,
PUBLIC variables are never a best bet, they are a patch to cover poor design.
To debug teh code set a break point on the click event you are interested in and then use the debugger, you will be able to see all of the local variables in that method then.