【发布时间】:2011-08-22 01:16:29
【问题描述】:
我在报告中有几个标记部分,如下所示:
<div class="report-section span-24 last">
<h3 class="section-header">
Municipal Valuation</h3>
<p class="section-desc">
<img src='<%= ResolveUrl("~/Images/info-icon.png")%>' class="left" alt="Section Description" />
The <strong>Municipal Valuation</strong> is the valuation provided by the relevant
municipality and represents the market value assessed for rates purposes as at the
date of valuation.</p>
</div>
我想创建一个用户控件来封装每个部分中相同的所有内容,以便我可以像这样定义我的部分:
<lsReport:Section ID="reportDetails" runat="server" Title="Transfer Information">
<Description>The <strong>Municipal Valuation</strong> is the valuation provided by the relevant
municipality and represents the market value assessed for rates purposes as at the
date of valuation.</Description>
</lsReport:Section>
所以标题总是在<h3 class="section-header"> 中,描述段落总是有图像等。我该怎么做?我已经可以在控件的属性中定义描述文本,但是有些描述很长,并且包含标记。我想知道如何使用控件元素的描述子元素来设置控件的描述属性。
【问题讨论】:
标签: asp.net user-controls webforms asp.net-4.0