You want to add items to a reapeater dynamically from code behind, this piece of code should help you.
Please write this code in your repeaters itemdatabound event.
dim item as new literalcontrol()
item.text=e.item.dataItem("columnname")
rpt.controls.add(item)
dinesh_sp
Contributor
2272 Points
413 Posts
Re: literal inside repeater is not declared
May 14, 2008 08:01 AM|LINK
Hi ModiG,
You want to add items to a reapeater dynamically from code behind, this piece of code should help you.
Please write this code in your repeaters itemdatabound event.
dim item as new literalcontrol()
item.text=e.item.dataItem("columnname")
rpt.controls.add(item)
This would help you.