chart を保持する webpart 内に配置されたパネルがあります。Web パーツ ゾーンのタイトルは Untitled[0],Untitled[1]....パネル コントロールまたは Web パーツにタイトル タグがありません。誰でもこれを解決する方法を知っています。
1619 次
1 に答える
2
これを試してください:
<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". このヘッダーは、編集モード、デザイン モード、または接続モードのときに Web パーツを識別するために使用されます (これはタイトルではありません)。<uc:ProductSummary title="Product summary title" runat="server" ID="productSummary" />. この場合、これは a を表し、UserControlこれは に追加されました。ご覧のとおり、その名前のプロパティを宣言していない場合でもaをにZoneTemplate渡すことができ、そのプロパティを使用してタイトルを表示します...ちょっとトリッキーtitle="..."UserControlWebPart
出力

于 2012-07-29T10:43:25.160 に答える