G
Guest
I create a UserControl (.ascx), and then change it in code to:
Inherits System.Web.UI.WebControls.WebParts.WebPart
expecting that it will now be treated as a WebPart. But this immediately
generates 2 errors. How does one go about creating a WebPart by inheriting
as above?
(I know that I can drag a UserControl into a WebPartZone and it will be
wrapped in a GenericWebPart.) Thanks
Jav
Inherits System.Web.UI.WebControls.WebParts.WebPart
expecting that it will now be treated as a WebPart. But this immediately
generates 2 errors. How does one go about creating a WebPart by inheriting
as above?
(I know that I can drag a UserControl into a WebPartZone and it will be
wrapped in a GenericWebPart.) Thanks
Jav