I have a aspx page in which there is a div. On click of a button the div is being displayed. The div contains a list of checkboxes and an "apply" button. If some values in the list are checked and the apply button is clicked, the selected value must be added to the page. This is my requirement. But what happens is that, on click of the "apply" button, page load happens and the list of checkboxes is being cleared. Because of this, i am not able identify the selected items. How to solve this issue? Thanks in advance
private void Page_Load(object sender, System.EventArgs e)
{
int assp=0;
for(int itest=0;itest<chkAvailablelist.Items.Count;itest++)
{
if(chkAvailablelist.Items[itest].Selected)
{
assp=1;
}
}
In dubug mode, the chkAvailablelist is being shown as empty