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

首頁 > 開發 > 綜合 > 正文

多維數祖數據綁定!

2024-07-21 02:22:30
字體:
來源:轉載
供稿:網友
<html>

    <script language="c#" runat=server>
        void page_load(object sender, eventargs e) {
            // create and populate a multi-dimensional array
            int [][] myarray = new int[5][];
            for (int i=0; i<5; i++) {
                myarray[i] = new int[6];
                for (int x=0; x<6; x++) {
                    myarray[i][x] = x+(6*i);
                }
            }
            // databind array to server controls
            outer.datasource = myarray;
            outer.databind();
        }
    </script>

<body>

    <asp:datalist id="outer" runat=server>
    <template name="itemtemplate">
        here is an array's values:
        <asp:repeater datasource="<%#container.dataitem%>" runat=server>
            <template name="itemtemplate">
                <%# container.dataitem %>
            </template>
        </asp:repeater>
    </template>
    </asp:datalist>

</body>
</html>


收集最實用的網頁特效代碼!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 嘉黎县| 平果县| 铜陵市| 高雄市| 舟曲县| 平果县| 繁昌县| 安吉县| 新源县| 鄂尔多斯市| 昭通市| 横山县| 江山市| 珠海市| 渭南市| 隆安县| 资中县| 邵武市| 申扎县| 青川县| 章丘市| 惠东县| 永平县| 榆林市| 永新县| 齐齐哈尔市| 乌兰县| 桐庐县| 镇雄县| 温宿县| 阿克陶县| 鹤壁市| 石嘴山市| 广丰县| 肥西县| 高雄市| 隆安县| 两当县| 平原县| 深水埗区| 教育|