The question isn't particularly clear but from my understanding you wish to retrieve the values associated with the check boxes from the form collection and pass these values into th controller.
int[] checkboxIndecies=new int[] { /* checkbox indecies*/ }
bool[] checkboxValues=new bool[checkboxIndecies.Length];
for (int i=0; i < index_of_last_checkbox.Length; i++)
{
checkboxValues[i]=Convert.ToBoolean(FormsCollection[checkboxIndecies]);
}
That should get the value of each of the checkboxes from the forms collection, convert them to bool and place them im checkboxValues
Appolagises if this is unclear or just plain bad code, feel free to correct me
Crippledsmurf
2009-04-29 13:22:00