asp.net 2.0中tablecontrol搭配masterpage的小bug
来源:互联网 发布:学c语言能找什么工作 编辑:程序博客网 时间:2024/06/11 13:41
在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
- asp.net2.0中tablecontrol搭配masterpage的小bug
- ASP.NET MasterPage 中图片路径的解决办法!
- ASP.NET MasterPage 中图片路径的解决办法!
- ASP.NET MasterPage 中图片路径的解决办法
- ASP.NET中使用MultiView和View以及Menu实现Tablecontrol的功能
- ASP.NET 2.0中动态混合使用MasterPage和主题
- Asp.net 2.0 在contentPage中访问MasterPage
- Asp.net 2.0 在contentPage中访问MasterPage
- asp.net 2.0下嵌套masterpage页的可视化编辑
- ASP.NET 2.0配合MasterPage的优化CSS
- ASP.NET 2.0配合MasterPage的优化CSS
- ASP.NET 2.0配合MasterPage的优化CSS
- ASP.NET 2.0配合MasterPage的优化CSS
- ASP.NET 2.0配合MasterPage的优化CSS
- asp.net 2.0下嵌套masterpage页的可视化编辑
- asp.net 2.0下嵌套masterpage页的可视化编辑
- 项目实践系列springfeel(2)
- 项目实践系列springfeel正式启动
- 正在读《Prefactoring》一书,推荐下
- rose 2003画图的一个要注意的地方
- (转) UNO规则
- asp.net 2.0中tablecontrol搭配masterpage的小bug
- asp.net 2.0中可以访问head了
- 老师的一封回信
- web2.0的几个开源项目
- 3月广州IT媒体杀人游戏比赛,就在本周五晚
- 广州黑色三月呀
- VS2005中用Code Snippets提高开发效率
- 第16届 JOLT 卓越产品奖隆重揭晓
- 项目管理学习心得1