ASP.NET ListView - Render THEAD/TBODY Tags

后端 未结 1 915
慢半拍i
慢半拍i 2020-12-17 13:58

I have an ASP.NET ListView control (see below).

Unfortunately, when a ListView control is rendered is does so absent of HTML tags such as THEAD/TBOD

1条回答
  •  既然无缘
    2020-12-17 15:03

    It is cause you mark table as runat element

    May be ASP.NET Forms framework realization causes a parsing of table content with removing "thead" tags.

    Try to realize your layout without marking table tag with runat="server". I tried it and thead tag is rendered.

    0 讨论(0)
    提交回复
    热议问题