G
Guest
I have images within a datalist control. Below is a checkbox control that
contains the SQL ID of the image blob.
When the page is post back I want to iterate though checkbox collection to
get the IDs
Normally you can say Request["myCheckbox"] and get all the values for those
items that were checked. I want to access the "chkDelete" collection so I can
enumerate though the the collection. How do I access the check boxes within
the datalist????????????
I tried (just to see if I get values) but Checkbox1 is always null:
System.Web.UI.HtmlControls.HtmlInputCheckBox Checkbox1 =
dataListControl.FindControl("chkDelete") as HtmlInputCheckBox;
Response.Write(Checkbox1.Value);
contains the SQL ID of the image blob.
When the page is post back I want to iterate though checkbox collection to
get the IDs
Normally you can say Request["myCheckbox"] and get all the values for those
items that were checked. I want to access the "chkDelete" collection so I can
enumerate though the the collection. How do I access the check boxes within
the datalist????????????
I tried (just to see if I get values) but Checkbox1 is always null:
System.Web.UI.HtmlControls.HtmlInputCheckBox Checkbox1 =
dataListControl.FindControl("chkDelete") as HtmlInputCheckBox;
Response.Write(Checkbox1.Value);