Sharepoint Web Parts (2)

Sanbox only allows code-only web part, or regular web part.

Create a web part that shows a summary of all tasks. Create a new empty Sharepoint project (because there is no web part in the template), called Regularwebpart.

Select and add a new item: Web Part, and name is Summaryoftasks. Add a C# à Codeà Class and name it TaskGroup. A TaskGroup.cs is created in the project.

Code in the TaskGroup.cs:

Add a reference to System.Drawing as we will need to use color later. Reference à Add reference à .Net Tab, add System.Drawing.

Add thse two to the code behind:

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: