After creating a custom web user control in a ascx file I can dynamically add an instance of this control to the web forms Controls collection at runtime, but it won't render. Anybody know why?
Thanks for the response Kevin and for your suggestion. I'm not using LoadControl because my User control is actually a class, part of my project, not in a seperate file. The syntax I'm using i
Dim c As WebUserControl
Controls.Add(New WedUserControl1
c = FindControl(Controls.Item(Controls.Count - 1)).ClientID
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.