Skip to main content

Posts

Showing posts with the label Moss2007

Create a Web Part Page with a Web Part in Sharepoint 2010

Source code from codeplex In this blog I am going to explain how to create a web part page along with a web part. After using this feature, we just need to activate the feature; the rest will complete automatically. Steps for creating the functionality: Step 1: Create a project with Farm-Based solution: Step 2: Add a new item as webpart: Step 3: Add feature event receiver class, your solution should look like the following: Step 4: Add your logic to the web part: 01 [ToolboxItemAttribute( false )] 02 public class CustomWebPart : WebPart 03 { 04 protected override void CreateChildControls() 05 { 06 LiteralControl lt = new LiteralControl(); 07 lt.Text = "This webpart automatically added with page" ; 08 this .Controls.Add(lt); 09 } 10 } Step 5: You need to provide logic in the feature Reciever class. Find the attached file to see the source code. Step 6: Build, deploy and activate the feature. Step 7: Go to Page library ( S...

Create Personalize Application toolbar in SharePoint 2010

In this article I am going to explain about the application toolbar which will display the applications based on the current login users. To achieve the requirement we need to create two custom lists i.e. "All Apps" and "User App" " All Apps" list will have the below columns: " User Apps " list will have the below columns:

Steps for enabling archival policies in Form library

1. Open the form library, Go to Settings-> Form Library Settings 2. Click on Workflow settings->Add workflow

How to get taskid in workflow for assigning task programmatically

Hi Friends, I am posting my blog after long time. After busy schedule finally I got time post my blog. In this blog I just want to share my experience that I faced while creating workflow and assigning task and sending the link to assign task programmatically. My requirement was that I need to create task and send custom email body.In the body of email,I need to send a link for assign task.I googled the solution no success.Finally I tried with the below approach:

How to Programmatically Upload the files and folders to a sharepoint Document library,Update and Delete Files from sharepoint sites.

using System; using System.Data; using System.Configuration; using System.Web; using System.IO; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Microsoft.SharePoint; using Microsoft.SharePoint.WebControls;