Friday, 21 June 2013

Inject Controls on Visual Web Parts in SharePoint 2013

Memo to self:

"When injecting controls from code behind in a Visual Web Part in SharePoint 2013, use the Page Load event, not the CreateChildControls().

Example:

------------------------------------------------------------------------------------------------------------
  protected void Page_Load(object sender, EventArgs e)
        {
       
            this.EnsureChildControls();
            this.Controls.Add(new LiteralControl("<span></span>"));
        }

------------------------------------------------------------------------------------------------------------

Monday, 11 March 2013

Free eBook - 101 new features in SharePoint 2013


I strongly recommend a look at this free eBook:

101 new features in SharePoint 2013

Don't forget to thank the author, Isha Kapoor.