<%@ Page Language="C#" %>

<script runat="server">

     protected void Page_Load(object sender, EventArgs e) {
           int[] loc1 = new int[10];
           for (int loc2 = 0; loc2 < loc1.Length; loc2++) {
                 loc1[loc2] = loc2;
           }
           this.repeater1.DataSource = loc1;
           this.repeater1.DataBind();
     }
</script>

<html>
<head runat="server">
</head>

<body>

<asp:Repeater ID="repeater1" runat="server">
<ItemTemplate><%# GetDataItem() %></ItemTemplate>
</asp:Repeater>

</body>
</html>

相关文章:

  • 2021-11-23
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
相关资源
相似解决方案