bibmed2
asked on
Repeater Control - generate template for this repeater dynamically.
I am using a Repeater Control . Now , I want to generate all Template for this Repeater Dynamically.
This is what I want accomplish (schema):
foreach (RepeaterItem repeatItem in Repeater1.Items)
{
// Add ItemTemplate DataItems Dynamically
if (.........)
{
//template1
//ASP Table object here NOT LiteralControl as new LiteralControl("<table>"); In header Template
}
elseif (.......)
{
//template2
//ASP CheckBoxList
}
}
I`d like to do it form code behind.
This is what I want accomplish (schema):
foreach (RepeaterItem repeatItem in Repeater1.Items)
{
// Add ItemTemplate DataItems Dynamically
if (.........)
{
//template1
//ASP Table object here NOT LiteralControl as new LiteralControl("<table>");
}
elseif (.......)
{
//template2
//ASP CheckBoxList
}
}
I`d like to do it form code behind.
ASKER
Thank you for response.
But how can I put one control into another for example:
ASP CheckBoxList into ASP Table in particular row and column ?
But how can I put one control into another for example:
ASP CheckBoxList into ASP Table in particular row and column ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for help :)
Open in new window