3
동적으로 설정된 ID를 가져 오는 체크 박스 필드가있는 ListView가 있습니다.목록보기 내의 체크 박스 값 확인
나는 또한 checboxes가 체크 되었는지를 확인해야 할 때 버튼을 가지고 있지만 어떻게해야하는지 잘 모르겠습니다.
내가 어떻게 이런 일을 할 수 있는지에 대한 아이디어가 있습니까?
감사
이 내 코드입니다 :
<asp:ListView ID="ListView1" runat="server" DataKeyNames="Id"
DataSourceID="EntityDataSource1" EnableModelValidation="True">
<ItemTemplate>
<tr>
<td class="firstcol">
<input id='Checkbox<%# Eval("Id") %>' type="checkbox" />
</td>
</tr>
</ItemTemplate>
<LayoutTemplate>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="50" scope="col" class="firstcol">
</th>
</tr>
<tr ID="itemPlaceholder" runat="server"></tr>
</table>
<asp:Button ID="btnDownload" runat="server" Text="Download" Height="26px"
onclick="btnDownload_Click" />
</LayoutTemplate>
</asp:ListView>
protected void btnDownload_Click(object sender, EventArgs e)
{
???????
}