Posts

Showing posts with the label How to?

Tool Part for Visual Web Part – SharePoint 2010

Image
Hi SharePoint Friends,   I would like to discuss some cool stuffs for developing custom “Tool Parts” for SharePoint 2010 Visual web part. “Tool Part” is nothing but the set of controls that are required for your web part which works based on the tool part properties. It will be available as a new section in the web part properties area. There are two ways for developing a Visual Web part with custom tool part 1. Designing the entire tool part using the server side code. 2. Designing the tool part using user controls In this part, I will drive you thru O ption 1 . R u ready, lets get started. Step 1: Create a “Empty Project” using Visual Studio 2010 and name it as “CustomToolpartOtion1” and choose the deployment type as a “Farm Solution” . You should see a similar project structure in VS 2010. Step 2: Open “VisualWebpartwithTP1.cs” file and write the below mentioned code. The above mentioned code is to declare a property which has to be rendered in the web part pr...

SharePoint 2010 Help and How to - Videos

         Hi SharePoint friends and viewers, In this post I would like to bring some of the videos by MICROSOFT for SharePoint 2010 out-of-box features. They haven't covered everything, as we are developers we expect only a hint not the whole path. Many of them have passed the videos but still many of them are eager to see these kinds of videos. Ribbon highlights In SharePoint 2010 Open a Performance Point Web Part in a new window Export a Performance Point report or scorecard to PowerPoint Print a Performance Point dashboard or Web Part Overview of Performance Point dashboard elements Applying filters to Performance Point reports or scorecards Explore data in Performance Point reports and scorecards Export a Performance Point scorecard or report to Excel Use the Quick Launch pane to find Performance Point dashboards and dashboard items What’s New in Performance Point Dashboards Enabling versi...

Batch Update - SharePoint

Hi Guys, Today i would like to explain you about the batch update process in SharePoint. Batch (Group of items), the meaning is to update a large number of items to the SharePoint list by passing the values as XML elements. Consider if u want to update the list with more than 100 items. In this case if u use foreach it will be very expensive and it suck ur time. Moreover if u use SPListItem.Update() it takes 2.8secs for updating a single item. If u r using ProcessBatchUpdate it takes 30 secs to update to a maximum of 200 - 300 items based on ur requirement. So my suggestion is to use ProcessBatchUpdate for Adding, Updating and Deleting a large number of items from the SharePoint List. Lets see how to perform this command through the SharePoint object model Consider that u r adding items in the list with Title field as a running numbers. This is for example ah First of all u should format the XML file for Inserting, Updating or Deleting the items in list StringBuilder methodBu...

To create a minimal master page

Open SharePoint Designer. On the File menu, click New, point to SharePoint Content, and then click the Page tab. Double-click Master Page to create a new master page. Click Design to show the master page in design view. You should see header and left margin areas and several content placeholders in the master page. Click Code to show the master page in code view. Copy the Code into the Master Page. On the File menu, click Save As, provide a unique file name with the .master extension, and then save the file to the master page gallery (/_catalogs/masterpage) in your site collection. Cheers...

How to: Create a Minimal Master Page

Introduction One of the first tasks that you must complete when configuring a Microsoft Office SharePoint Server 2007 Web site is to create one or more master pages. A master page contains references to elements that you can share across multiple pages in an Office SharePoint Server 2007 site, such as navigation, search controls, logon controls, and banner images. A master page can also contain the cascading style sheet (CSS) and ECMAScript (JScript, JavaScript) references that define the overall look and feel of your site. Commonly, every site—and therefore every page—in your site collection uses the same master page to present a consistent user experience across the entire site collection. Depending on your needs, you can use a different master page for one or for all of the sites in your site hierarchy to distinguish the various areas of your portal. Master Page Galleries When you provision a site collection in Office SharePoint Server 2007, the system creates a master page gallery ...

How to:Extend the Navigation Provider

You can extend the navigation provider in Microsoft Office SharePoint Server 2007 by deriving a custom provider class from any of the default site map providers. Deriving from an Office SharePoint Server 2007 site map provider supplies several benefits such as navigation node caching and security trimming. The following code example derives from the PortalSiteMapProvider class and demonstrates how to add items to the site map provider. Although the site map provider classes have approximately twenty abstract or virtual methods, only a small number must be overridden and implemented in a custom site map provider. Create a Microsoft Visual C# class library project with following code, add the required references, and then build the project. using System;using System.Collections.Generic;using System.Text;using Microsoft.SharePoint.Publishing;using Microsoft.SharePoint.Publishing.Navigation;using System.Web;using System.Web.UI.WebControls;using System.Configuration; namespace MyCustomNav ...