ListView中插入DropDownList

  DropDownList在ListView中,但是DropDownList获取的值是单独的。其实实现来也很简单,在代码中加入一个SqlDataSource并且设置好查询语句。然后

  <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="sqlorg" DataTextField="name";  DataValueField="OrgID" asp:DropDownList>

  即可。