What version of ASP.NET does Mono 'emulate'? You may need to do this in pre-rendering (declaring a variable of the same name/type) if it's a pre 2.0 version.