Create Control
Hi there!
I want to add control to the page programmatically, but a have a problem:
My Custom control is in another dll , and while calling CreateControl method I don't know what path must be specified.
Can I specify path that is not in the root of my website?
If so show me some example please.
var control = new NewsView(); var pageControl = pageManager.CreateControl<PageControl>(control, placeHolder); page.Page.Controls.Add(pageControl); pageManager.SaveChanges();