国产探花免费观看_亚洲丰满少妇自慰呻吟_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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 门源| 无棣县| 江都市| 鄱阳县| 永靖县| 亚东县| 江油市| 个旧市| 胶州市| 荔波县| 香港| 额尔古纳市| 榆中县| 闽清县| 大城县| 佳木斯市| 平顺县| 江达县| 舞阳县| 浮山县| 新津县| 河间市| 沙洋县| 安新县| 邹城市| 晋州市| 岳西县| 德保县| 东明县| 东辽县| 兴业县| 石台县| 襄汾县| 加查县| 鹰潭市| 桂平市| 桂平市| 辉县市| 泸溪县| 慈利县| 宣城市|