G
Guest
Hello -
I'm using a Repeater control to render information in a very customized
grid-like table. The Repeater control is binded to a DataSet with several
records of information. Within the Repeater control, I've placed
DropDownLists and CheckBoxes.
When the user has updated the information, he/he clicks the submit button
which is outside the scope of the Repeater control.
What i need to do, is read each of the values from DropDownLists and
CheckBoxes and save these into the database. How can i read these controls
from code-behind?
I was thinking of using:
foreach (Control ctr in Page.Controls)
{
if (ctr is DropDownList)
{
// do something
}
}
However, i cannot find the repeater control. Any ideas how to do this?
Thanks,
I'm using a Repeater control to render information in a very customized
grid-like table. The Repeater control is binded to a DataSet with several
records of information. Within the Repeater control, I've placed
DropDownLists and CheckBoxes.
When the user has updated the information, he/he clicks the submit button
which is outside the scope of the Repeater control.
What i need to do, is read each of the values from DropDownLists and
CheckBoxes and save these into the database. How can i read these controls
from code-behind?
I was thinking of using:
foreach (Control ctr in Page.Controls)
{
if (ctr is DropDownList)
{
// do something
}
}
However, i cannot find the repeater control. Any ideas how to do this?
Thanks,