how are you creating controls?you cannot derive from WebForm1.PBase directly if you have static controls in PBase.aspx, consider to add those controls in PBase.aspx.csor see
ASP.NET Page Templates..... 
http://weblogs.asp.net/alowe/archive/2003/01/31.aspxor wait for MasterPages in ASP.NET 2.0, see a preview at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-standardize-masterpages.aspor see Paul Wilson's articles
MasterPages: Introduction
MasterPages: Improved Versionathttp://authors.aspalliance.com/PaulWilson/Articles/

解决方案 »

  1.   

    比如PBase.aspx.cs中类是
    namespace WebForm1
    {
        public class PBase : System.Web.UI.Page
        { 
         protected System.Web.UI.WebControls.Image Image1;
        }
    }如果我在下面的页面中继承上面的页面,那么下面的派生页面会不会也有一个图片框呢?下面该怎么写?namesapce WebForm2
    {
        public class test:WebForm1.PBase
       {   }
    }
      

  2.   

    >>>如果我在下面的页面中继承上面的页面,那么下面的派生页面会不会也有一个图片框呢?no, because the  Image1 is created in PBase.aspx physically
      

  3.   

    either create the controls dynamically in the super classes or use templates as shown in the above articles
      

  4.   

    Paul Wilson's articles 里有非常完整的例子和相关代码
      

  5.   

    倒,就在上面http://www.aspalliance.com/PaulWilson/Articles/?id=1