Good day to all.
I have datalist and checkbox in my web page.Datalist display a image from one folder,in datalist is a checkbox with the name of image.
I won't delete a image where checkbox is checked pushing a button but i can't catch it.IF you now please help my,i be gratefull.
there is the code and sorry for my english.

               
                   
                        " width="100" height="100" />
                        
        
                   
               
               
               
           
             




 protected void Button3_Click(object sender, EventArgs e)
    {
       
       
        foreach (DataListItem li in DataList1.Items)
        {
            
            CheckBox cb = (CheckBox)li.FindControl("CheckBox1");
            if (cb.Checked)
            {
                File.Delete(Server.MapPath("~/slike/" + cb.Text ));
            }
               
            

        } 
       
        pokazislike();
    }

thx in advance