【问题标题】:HeaderText value in a repeater control in asp.netasp.net 中转发器控件中的 HeaderText 值
【发布时间】:2011-08-12 14:59:03
【问题描述】:

如何设置中继器控件的列标题文本值?

【问题讨论】:

    标签: asp.net vb.net repeater


    【解决方案1】:

    使用<HeaderTemplate></HeaderTemplate>

    请注意,Repeater 控件是完全为您自己的 HTML 自定义的,并且不会像 GridView 或 DataGrid 那样呈现

    【讨论】:

    • 你的意思是转发器不像 Gridview 或 DataGrid 那样呈现?
    • 在 GridView 或 DataGrid 中,它显示表格数据。例如呈现为带有 thead、tbody 等的表格... 将数据绑定到列并为其提供标题文本很容易。在中继器中,您需要自己构建 HeaderTemplate。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多