asp.net 2.0中tablecontrol搭配masterpage的小bug
2006-03-30 09:25
519 查看
在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
<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
相关文章推荐
- asp.net 2.0中tablecontrol搭配masterpage的小bug
- asp.net 2.0中tablecontrol搭配masterpage的小bug
- How to programmatically assign a SkinID to a control while using a master page in ASP.net 2.0
- How to programmatically assign a SkinID to a control while using a master page in ASP.net 2.0
- Asp.Net 2.0 开发加速之 - Ilungasoft.Helper.Web.UI.MasterPage/Page/UserControl 精装版
- asp.net2.0中tablecontrol搭配masterpage的小bug
- Captaris Workflow 6.0不支持ASP.NET 2.0的 MasterPage?
- ASP.NET 2.0中动态混合使用MasterPage和主题
- 如何在ASP.NET 2.0 中的Master Page具体页面中 使用CSS?
- 设置页面的默认焦点控件和默认接受事件控件How Do I Set the DefaultFocus or DefaultButton in a Page Based on a Master Page in ASP.NET 2.0
- ASP.NET 2.0 之 Master Page 学习笔记
- Asp.net 2.0专题之一:MasterPage
- ASP.NET 2.0 之 Master Page 学习笔记
- ASP.NET 2.0 之 Master Page 学习笔记
- [ASP.NET学习笔记之十二]ASP.NET 2.0中Theme、MasterPage和代码国际化
- Rewrite the master page form action attribute in asp.net 2.0
- Asp.net 2.0专题之一:MasterPage
- Asp.net1.1实现仿2.0 MasterPage效果
- ASP.NET 2.0 MasterPages and FindControl()
- asp.net MasterPage FindControl