解决方法
我会推荐你这个
MSDN Page(ASP.NET页面类概述).
When the page is compiled,ASP.NET
generates a partial class based on the
.aspx file; this class is a partial
class of the code-behind class file.
The generated partial class file
contains declarations for the page’s
controls. This partial class enables
your code-behind file to be used as
part of a complete class without
requiring you to declare the controls
explicitly.
看这个图表:
alt text http://img30.imageshack.us/img30/7692/msdnchart.gif