How do I include thead in a runat=“server” table element?

前端 未结 6 1312
轮回少年
轮回少年 2021-02-07 04:39

I\'m upgrading a big web site project from Visual Studio 2010 to 2012. Throughout my project, I have table elements with the runat=\"server\" attribute

相关标签:
6条回答
  • 2021-02-07 05:13

    I don't have VS 2012; right now but you should try following things

    1. Can you verify changing DOCTYPE. (to transitional, frame-set, 1.1 or html 5 etc)
    2. Put the whole table inside asp:placeholder
    0 讨论(0)
  • 2021-02-07 05:15

    For partial solution you can move that <th> front-end code to the back-end code. That should take care of the compilation problem. Don't know what to do about <tbody> tags though. If you view HTML of your page as it stands now, I doubt that they render anyway. Here is why.

    0 讨论(0)
  • 2021-02-07 05:18

    Simple solution remove tags tbody and thead, for me worked.

    0 讨论(0)
  • 2021-02-07 05:18

    Yes Its a bug in Visual Studio 2012,Applying the patch from below mentioned link has worked for me: http://www.microsoft.com/en-us/download/details.aspx?id=36359

    Removing the tag won't solve it out for a current/migrating running project. In that way we have to change each and every aspx page.

    0 讨论(0)
  • 2021-02-07 05:21

    Fix for this issue is available now. http://support.microsoft.com/kb/2750149 for windows 8 and http://support.microsoft.com/kb/2750147 for Windows 7 platform.

    0 讨论(0)
  • 2021-02-07 05:33

    Microsoft has confirmed this is a bug. They will create a hot fix for it, and include the fix in the next service pack. It doesn't sound like this is a high priority, so it will probably take a while for the hot fix.

    2012-10-01 Update: Microsoft support contacted me and said this will be fixed in an upcoming hot fix "soon".

    2012-11-28 Update: Visual Studio 2012 Update 1 does not fix the problem.

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