日期:2014-05-18 浏览次数:20471 次
<table width="600px"> <tr> <asp:ListView ID="ListView1" runat="server"> <ItemTemplate> <td> <asp:CheckBox AutoPostBack="true" ID="CheckBox1" Text='<%# Eval("name") %>' runat="server"> </asp:CheckBox> </td> </ItemTemplate> </asp:ListView> </tr> </table>
public void BindNote() { DataSet ds = QJSVSPBLL.EmployeeInfoBLL.CheckAllInfo(); ListView1.DataSource = ds; ListView1.DataBind(); }