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/
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/
namespace WebForm1
{
public class PBase : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Image Image1;
}
}如果我在下面的页面中继承上面的页面,那么下面的派生页面会不会也有一个图片框呢?下面该怎么写?namesapce WebForm2
{
public class test:WebForm1.PBase
{ }
}