Archive | SharePoint FAQs RSS feed for this section

SharePoint Recycle IIS application pool Error

Please note that the Visual Studio SharePoint development tools require you to install SharePoint on the same machine as Visual StudioWith sharepoint 2010 installed on a server and attempting to run the application from Visual studio 2010 you may encounter the below error : Error occured in deployment step: “Recycle IIS application pool”: The local [...]

Read more

Open PDF documents in SharePoint

SharePoint is capable of opening PDF documents however there has been a change since SharePoint 2007 which could open PDFs be default. The enhanced security features of SharePoint 2010 mandates that you must manually adjust the security settings to view PDFs otherwise users will only be able to download the PDF and not view it. [...]

Read more

SharePoint Backup Using PowerShell

PowerShell is a powerful scripting tool that comes as standard in a Windows Server 2008 R2 installation (for prior versions of Windows Server you should manually download and install PowerShell 2 here) PowerShell can be very useful for automating tasks such as backing up SharePoint sites. The below example demostrates a simple backup scenario where PowerShell [...]

Read more

Show Flash (SWF) Files in SharePoint

SharePoint pages can display Flash (.swf) files but y0u will need to do a little tweaking first before the flash <object> code will work in the html: Got to Central Admin > Web Application Management > Select your web app > Select General Settings on the ribbon > set the Browser File Handling to Permissive [...]

Read more

Using SharePoint with MVC

ASP.NET MVC can be used for SharePoint development except for Web Parts. If you wish to use the same design pattern as MVC in developing for SharePoint then you should refer to the Microsoft patterns and practices documentation for a model-view-presenter SharePoint design pattern at  http://www.codeplex.com/spg .  Also you can check out Web Part Development  SharePoint using [...]

Read more

Add a List Item Programmatically in SharePoint

The below code demonstrates how to use the SharePoint API to add a list items programmatically: string dashListRootStr= “http://sharepointSite/SubSite/Lists/MyList/”; using(SPSite site = new SPSite(dashListRootStr)) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists["MySPList"]; SPListItem Item = list.Items.Add(); item["Title"] = txtCompanyName.Text; item["DateReceived"] = System.DateTime.Now; item["Description"] = txtDescription.Text; //Important: Comma and space required to add [...]

Read more

Delete a List Item Programmatically in SharePoint

The below code demonstrates how to use the SharePoint API to delete a list items programmatically: Delete an an tem without placing the item in the recycle bin: using (SPWeb web = siteCollection.AllWebs["thewebname"]) { SPList list = web.Lists["Document Library"]; SPListItem item = list.Items[guid]; item.Delete(); } Delete an an tem and place the item in the [...]

Read more

Create a Group for a SharePoint Site

To create a new SharePoint group, navigate to the People and Groups page (Site Actions >  People and Groups) , click the New dropdown and select New Group: This opens the New Group page with several options. Name and About Me – simply enter the Name and Description Owner – This setting defaults to the [...]

Read more

Change User or Groups Permissions in SharePoint

To change the permissions of a user or group in a SharePoint site, first navigate  to the site’s main Permissions page (Site Actions >  Site Settings > Advanced Permissions) : To change the permission levels for the users or groups, check the box next the user/group and click the Actions dropdown and select Edir User [...]

Read more

Add User Permissions Directly in SharePoint

If you don’t want to add a user to a SharePoint group but want to give the user a specific set of permissions unrelated to a specific group then navigate to the site’s security page (Site Actions > Site Settings > People and Groups > All People (located on the left navigation bar). This page [...]

Read more