国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

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

2024-07-10 13:11:20
字體:
來源:轉載
供稿:網友
注冊會員,創建你的web開發資料庫,

在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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 山阳县| 修水县| 武夷山市| 玛纳斯县| 城固县| 富民县| 延津县| 溧水县| 滦平县| 荔浦县| 瑞安市| 岳阳县| 灵丘县| 亳州市| 咸丰县| 临夏市| 武功县| 敦煌市| 泰安市| 泾源县| 蕉岭县| 银川市| 南城县| 高安市| 登封市| 邳州市| 南丹县| 盈江县| 辉南县| 汝城县| 河南省| 台南县| 白朗县| 大埔区| 西藏| 长垣县| 焉耆| 河池市| 奈曼旗| 开阳县| 靖边县|