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

王朝asp·作者佚名  2006-11-24
宽屏版  字体: |||超大  

在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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有