Programmatically create instance of DynamicContentView
So I am trying to programattically render a widget from a custom module on a page. I can do this easily with News by doing the following:
var control =
new
NewsView() DetailItem = item ;
page.Controlls.Add(control);
Anyone out there?
Still looking for an answer...
This post was inadvertently answered by this post: http://www.sitefinity.com/devnet/forums/sitefinity/developing-with-sitefinity/programmatically-change-widget-template.aspx
Erik, I was about to post suggesting that perhaps the solution might apply here as well, thank you for taking the time to update the thread!