设为首页 加入收藏 网站搜索 繁體中文 中国建站网 — 站长资源分享平台

asp.net 2.0中tablecontrol搭配masterpage的小bug

来源:网络收集 作者:佚名 时间:2007-04-25 23:08:17

在asp.net 2.0中,如果在一个masterpage页面中,使用服务端的table控件的话,如下所示,会在设置视图时,没了其中的contentplaceholder,

    <asp:Table ID="tbl" runat="server">
            <asp:TableRow>
                <asp:TableCell>
                    This is my header!
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                    <asp:contentplaceholder id="_content" runat="server">
                    </asp:contentplaceholder>           
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                    This is my footer!
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>  

   而如果用普通的页面table的话,则不会出现如下的问题,
  <table>
            <tr>
                <td>
                    This is my header!
                </td>
            </tr>
            <tr>
                <td>
                    <asp:contentplaceholder id="_content" runat="server">
                    </asp:contentplaceholder>           
                </td>
            </tr>
            <tr>
                <td>
                    This is my footer!
                </td>
            </tr>
        </table>
  微软已经确认是个小BUG拉,将会在下一个版本解决,具体参考:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=6345496f-76eb-4e6c-aa95-791bfbfc24a0


出处:jackyrong BLOG

Tags:

  • 好的评价 如果您觉得好,就请您
      0%(0)
  • 差的评价 如果您觉得差,就请您
      0%(0)
  • 相关文章
    广告赞助

    文章随便看看 设计素材 建站学院 网页模板 视频教程

    网友评论

    共有 0 位网友发表了评论,得分 0 分,平均 0 分    查看完整评论

    用户名: 查看更多评论

    分 值:100分 85分 70分 55分 40分 25分 10分 1分

    内 容:

             通知管理员 验证码: