K
Karl-Inge Reknes
Hi
I have a repeater that is connected to an objectdatasource. I can reach the
item control like this.
foreach (RepeaterItem item in Repeater1.Items)
{
CheckBox c= (CheckBox)i.FindControl("checkbox1");
Label l = (Label)i.FindControl("label1");
}
The objectdatasource have information that i don’t want to show, but i need
to reach. One solution is to use controll with Visible set to false, but I
don’t like this solution.
Is it posible to reach the RepeaterItem dataobject?
I have tried this code with no sucsess:
foreach (RepeaterItem item in Repeater1.Items)
{
CheckBox c= (CheckBox)i.FindControl("checkbox1");
Label l = (Label)i.FindControl("label1");
CustomerClass c = (CustomerClass)i.DataItem;
}
Is there anybody how have an suggestion?
Regard
Karl-Inge Reknes
I have a repeater that is connected to an objectdatasource. I can reach the
item control like this.
foreach (RepeaterItem item in Repeater1.Items)
{
CheckBox c= (CheckBox)i.FindControl("checkbox1");
Label l = (Label)i.FindControl("label1");
}
The objectdatasource have information that i don’t want to show, but i need
to reach. One solution is to use controll with Visible set to false, but I
don’t like this solution.
Is it posible to reach the RepeaterItem dataobject?
I have tried this code with no sucsess:
foreach (RepeaterItem item in Repeater1.Items)
{
CheckBox c= (CheckBox)i.FindControl("checkbox1");
Label l = (Label)i.FindControl("label1");
CustomerClass c = (CustomerClass)i.DataItem;
}
Is there anybody how have an suggestion?
Regard
Karl-Inge Reknes