日期:2014-05-17 浏览次数:20610 次
<div>
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<script>alert('随便响应一下')</script>
</ItemTemplate>
</asp:Repeater>
</div>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
DataTable dt = new DataTable();
dt.Columns.Add("ctime", typeof(DateTime));
dt.Rows.Add(DateTime.Now);
dt.Rows.Add(DateTime.Now);
dt.Rows.Add(DateTime.Now);
this.Repeater1.DataSource = dt;
this.Repeater1.DataBind();
}
}