ASP.NET에서 웹 파트 영역 제목에 제목 없음[0]이 표시됩니다.
-
13-12-2019 - |
문제
차트를 보유하는 웹파트 내부에 패널이 있습니다.웹 파트 영역의 제목은 Untitled[0],Untitled[1]...입니다. 패널 컨트롤이나 웹 파트에는 제목 태그가 없습니다.누구든지 이 문제를 해결하는 방법을 알고 있습니다.
해결책
이것을 시도해 보세요:
<asp:WebPartZone Height="100px" Width="75%" runat="server"
ID="productSummaryZone" HeaderText="Product summary">
<ZoneTemplate>
<uc:ProductSummary title="Product summary title" runat="server" ID="productSummary" />
</ZoneTemplate>
</asp:WebPartZone>
HeaderText="Product summary"
.이 헤더는 편집, 디자인 모드 또는 연결 모드에 있을 때 웹 파트를 식별하는 데 사용됩니다(제목이 아님).<uc:ProductSummary title="Product summary title" runat="server" ID="productSummary" />
.이는 다음을 나타냅니다.UserControl
이 경우에는ZoneTemplate
, 보시다시피title="..."
너의 ~에게UserControl
해당 이름의 속성을 선언하지 않은 경우에도WebPart
그런 다음 해당 속성을 사용하여 제목을 표시합니다.좀 까다롭다
산출
제휴하지 않습니다 StackOverflow