Hi,
perhaps Page.ParseControl is what you are looking for?
For example
Control c = ParseControl("<asp:button text='Click here!' runat='server'
/>");
myPlaceholder.Controls.Add(c);
E.g you can parse control from the markup

Signature
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
> Hi All,
>
[quoted text clipped - 8 lines]
>
> Thanks in advance. :)
ukeu - 06 Oct 2006 06:53 GMT
Hi,
Thanks! This works just fine.