获取或设置在显示在用户自定义信息区的用户自定义HTML文本内容。

public string CustomInfoHTML {get; set;}

备注

可以用“%”+属性名+“%”来代替该属性的值,控件在运行时会将“%”+属性名+“%”替换为相应的属性的值,其中的“属性名”仅适用于下列属性:

属性名不区分大小写,所以“%RecordCount%”可以写为“%recordcount%”。

示例

下面的代码片段显示如何设置AspNetPager的用户自定义信息:

       
<webdiyer:aspnetpager id="AspNetPager1" runat="server" horizontalalign="Center" 
onpagechanged="AspNetPager1_PageChanged" showcustominfosection="Left" width="100%" 
CustomInfoHTML="当前页:%CurrentPageIndex%&nbsp;总页数:%PageCount%&nbsp;显示第%StartRecordIndex%条到%EndRecordIndex%条记录">
</webdiyer:aspnetpager>

     

请参见

AspNetPager 类 | Wuqi.Webdiyer 命名空间