you both wrong, but we need someone to explain the issue:
the system.ui.web.p age class defined a <DesignerCatego ry and other
properties can be seen in reflector.
which of those should my base class define and which value?
the data from reflector is:
<DesignerCatego ry("ASPXCodeBeh ind"),
Designer("Micro soft.VSDesigner .WebForms.WebFo rmDesigner,
Microsoft.VSDes igner, Version=7.0.500 0.0, Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a", GetType(IRootDe signer)),
DefaultEvent("L oad"),
RootDesignerSer ializer("Micros oft.VSDesigner. WebForms.RootCo deDomSerializer ,
Microsoft.VSDes igner, Version=7.0.500 0.0, Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a",
"System.Compone ntModel.Design. Serialization.C odeDomSerialize r,
System.Design, Version=1.0.500 0.0, Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a", True), ToolboxItem(Fal se),
PermissionSet(S ecurityAction.I nheritanceDeman d, XML:="<Permissi onSet
class=""System. Security.Permis sionSet""" & ChrW(13) & ChrW(10) & "
version=""1"">" & ChrW(13) & ChrW(10) & " <IPermission
class=""System. Web.AspNetHosti ngPermission, System, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9""" & ChrW(13) & ChrW(10) &
" version=""1""" & ChrW(13) & ChrW(10) & "
Level=""Minimal ""/>" & ChrW(13) & ChrW(10) & "</PermissionSet>" & ChrW(13) &
ChrW(10)), PermissionSet(S ecurityAction.L inkDemand, XML:="<Permissi onSet
class=""System. Security.Permis sionSet""" & ChrW(13) & ChrW(10) & "
version=""1"">" & ChrW(13) & ChrW(10) & " <IPermission
class=""System. Web.AspNetHosti ngPermission, System, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9""" & 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******@hotma il.com> wrote in message
news:%2******** *******@TK2MSFT NGP14.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*********@gm ail.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.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.