you both wrong, but we need someone to explain the issue:
the system.ui.web.page class defined a <DesignerCategory and other
properties can be seen in reflector.
which of those should my base class define and which value?
the data from reflector is:
<DesignerCategory("ASPXCodeBehind"),
Designer("Microsoft.VSDesigner.WebForms.WebFormDes igner,
Microsoft.VSDesigner, Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a", GetType(IRootDesigner)),
DefaultEvent("Load"),
RootDesignerSerializer("Microsoft.VSDesigner.WebFo rms.RootCodeDomSerializer,
Microsoft.VSDesigner, Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a",
"System.ComponentModel.Design.Serialization.CodeDo mSerializer,
System.Design, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a", True), ToolboxItem(False),
PermissionSet(SecurityAction.InheritanceDemand, XML:="<PermissionSet
class=""System.Security.PermissionSet""" & ChrW(13) & ChrW(10) & "
version=""1"">" & ChrW(13) & ChrW(10) & " <IPermission
class=""System.Web.AspNetHostingPermission, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089""" & ChrW(13) & ChrW(10) &
" version=""1""" & ChrW(13) & ChrW(10) & "
Level=""Minimal""/>" & ChrW(13) & ChrW(10) & "</PermissionSet>" & ChrW(13) &
ChrW(10)), PermissionSet(SecurityAction.LinkDemand, XML:="<PermissionSet
class=""System.Security.PermissionSet""" & ChrW(13) & ChrW(10) & "
version=""1"">" & ChrW(13) & ChrW(10) & " <IPermission
class=""System.Web.AspNetHostingPermission, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089""" & ChrW(13) & ChrW(10) &
" version=""1""" & ChrW(13) & ChrW(10) & "
Level=""Minimal""/>" & ChrW(13) & ChrW(10) & "</PermissionSet>" & ChrW(13) &
ChrW(10))> _
Public Class Page
"Sean M" <ta******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
If your PageBase is generic enough, consider compiling it as a separate
.NET assembly and including a reference to it in your ASP.NET project
-- Sean M
<th*********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com... This is a known issue with VS.NET, probably...
Make sure your base class has a public constructor with no arguments.
Also, make sure it's not an abstract class. (VS.NET can't handle that.)
Even with both of these conditions met, sometimes VS.NET will simply
refuse to load the page into the designer. When this happens, close the
page in question, close the project, then open everything up again.
Most of the time this will temporarily solve the problem.