Hi there
I'm struggling to find a way to get a list of all the selected items inside a CheckBoxList nested inside a grid's FormTemplate in the grid's Updatecommand.
I manage to get the values of all the other controls by using the following code:
String companyNameKey = Page.Request.Form.AllKeys.First(key => key.Contains("TextBoxCompanyName"));
String CompanyName = Page.Request.Form[companyNameKey];
But this does not seem possible for a CheckBoxList.
How should I do this?
Danielle
I'm struggling to find a way to get a list of all the selected items inside a CheckBoxList nested inside a grid's FormTemplate in the grid's Updatecommand.
I manage to get the values of all the other controls by using the following code:
String companyNameKey = Page.Request.Form.AllKeys.First(key => key.Contains("TextBoxCompanyName"));
String CompanyName = Page.Request.Form[companyNameKey];
But this does not seem possible for a CheckBoxList.
How should I do this?
Danielle