Skip to content

Instantly share code, notes, and snippets.

@Hameds
Created November 2, 2017 09:44
Show Gist options
  • Select an option

  • Save Hameds/82872e81d6e72c0de2cceb366359dcee to your computer and use it in GitHub Desktop.

Select an option

Save Hameds/82872e81d6e72c0de2cceb366359dcee to your computer and use it in GitHub Desktop.
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
namespace Araye.SharePoint.Webparts.HelloWorld.HelloWorld
{
[ToolboxItemAttribute(false)]
public class HelloWorld : WebPart
{
protected override void CreateChildControls()
{
this.Controls.Add(new Label(){Text = "Hello World from SharePoint Webpart!"});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment