当前位置:首页 > 网络编程 > WEB编程 > ASP.net >  asp.net 2.0中tablecontrol搭配masterpage的小bug

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

点击次数:32 次 发布日期:2008-11-26 12:44:14 作者:源代码网
源代码网推荐      在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
源代码网推荐  
源代码网推荐  
源代码网推荐  
源代码网推荐  
源代码网推荐  
源代码网推荐    做人要厚道,请注明转自酷网动力(www.ASPCOOL.COM)。
源代码网推荐


源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华