J
Jerry C
I am trying to close a webpart in a WebPartZone. There is a WebPartManager
and CatalogZone on the page.
The WebPartZone looks like this
<ZoneTemplate>
<uc1
DEstimate ID="DDEstimate1"
title="Estimate" runat="server" />
<uc2
DStationVendor ID="DDStationVendor1"
title="Vendor Summary" runat="server" />
<uc3
DEstimateLog ID="DDEstimateLog1"
title="Estimate Status Log" runat="server" />
<uc5
DEmailToDownloadAlert
ID="DDEmailToDownloadAlert1" title="Traffic Manager Alerts" runat="server" />
</ZoneTemplate>
I am trying to use the code:
WebPartManager1.CloseWebPart(DDEmailToDownloadAlert1)
to close the webpart and getting the error:
Error 10 Value of type 'ASP.ddemailtodownloadalert_ascx' cannot be converted
to 'System.Web.UI.WebControls.WebParts.WebPart'.
Thank you
and CatalogZone on the page.
The WebPartZone looks like this
<ZoneTemplate>
<uc1
title="Estimate" runat="server" />
<uc2
title="Vendor Summary" runat="server" />
<uc3
title="Estimate Status Log" runat="server" />
<uc5
ID="DDEmailToDownloadAlert1" title="Traffic Manager Alerts" runat="server" />
</ZoneTemplate>
I am trying to use the code:
WebPartManager1.CloseWebPart(DDEmailToDownloadAlert1)
to close the webpart and getting the error:
Error 10 Value of type 'ASP.ddemailtodownloadalert_ascx' cannot be converted
to 'System.Web.UI.WebControls.WebParts.WebPart'.
Thank you