Click here to Skip to main content
15,038,621 members

Comments by pallav agarwal (Top 1 by date)

pallav agarwal 18-Dec-12 6:17am View
Thanks for your reply @Chill60.I have read this article and implement a code
PageModel pageModel = new PageModel();
PageData pageData = new PageData();
pageModel.Get(2, out pageData, false);
WidgetData widget = new Ektron.Cms.PageBuilder.WidgetData();

widget.ControlURL = "ContentBlock.ascx";
widget.ID = 27; // For content block

// You also need to set other properties like Settings, DropID, ColumnID


But I am getting error "com:user does not have permission";