ASP.NET ListView - Render THEAD/TBODY Tags

后端 未结 1 913
慢半拍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

    <table runat="server" class="scrollTable" >
    

    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)
提交回复
热议问题