前台
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div id="panel_add">
<div>
<div>
<div style=" 67px;">
活动名称:</div>
<div>
<input maxlength="100" name="hd_name" type="text" id="hd_name" value="<%#Eval("活动名称") %>" />(不超过100字)</div>
</div>
<div>
<div>
活动介绍:</div>
<div>
<textarea maxlength="200" id="hd_summary" style=" 280px; height: 60px;"><%#Eval("备注") %></textarea><br />
(不超过200字)</div>
</div>
<div>
<div>
开始时间:</div>
<div>
<input type="text" id="startTime" value="<%#Eval("开始时间") %>" readonly /></div>
</div>
<div>
<div>
截止时间:</div>
<div>
<input type="text" id="endTime" value="<%#Eval("截止时间") %>" readonly /></div>
</div>
<div>
<div style="padding-left: 28px;">
<input type="button" value="提交" id="btn_submit" class="btn_submit" onclick="AddWz()" />
</div>
</div>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
后台
PagedDataSource pds = new PagedDataSource();
pds.DataSource = bintoedithuod().DefaultView;
Repeater1.DataSource = pds;
Repeater1.DataBind();
SqlDataReader 与 Repeater
SqlDbCommand dbcom=new SqlDbCommand ("SQL语句 ;"+"SQL语句",dbconn);
SqlDataReader dr=dbcom.ExecuteReader();
this.Repater1.DataSoucre=dr;
dr.NextResult();
this.Repater2.DataSoucre=dr;
dr.Close();
dbconn.Close();
}