Updating a HeaderTemplate with a SeperatorTemplate

T

Tarun Mistry

Hi guys,

I have a Repeater control which is set to trigger on the "OnItemCreated"
event.

Within the event handler, I would like to add a hyperlink control into the
HeaderTemplate, I managed todo this by simply adding a new control
(e.Item.Controls.add(newHyperLink). However, I would then like to append the
seperator template which is defined within the Repeater. This is in the form
of an ITemplate.

By doing..

ITemplate i = (ITemplate)e.Items.FindControl("SeperatorTemplate") I am able
to get the template, but I cannot add it via the same means as the HyperLink
as it is not a control. What should I do?

Please help.

Kind regards
Taz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top