Posts

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...

SPGridView Problem - Paging and Grouping

Hi guys, i hope u all enjoyed my previous posts. Here i would like to share some information regarding SPGridView in SharePoint. It is one of the most effective and advanced control in SharePoint. Many of them have used this control and they succeed in their part. As per one of the client requirement i have developed a application page with SPGridview and i have added Paging and Grouping. First i add only the paging with custom paging template it works fine. But, when i try to add the Grouping it throws an Unknown Error. I have searched all over the net and i have found the solution. If anyone has encountered this problem please change the EnableViewState property to false and it will work. Cheers...

Slider Custom field type for SharePoint

Media viewer webpart for Sharepoint

Hello World video for Sharepoint

Enterprise Search

Introduction: Enterprise Search is one of the most compelling features of SharePoint Server 2007. The out-of-the-box capabilities can drastically improve end users’ experience in retrieving relevant information. The same capabilities are available for custom SharePoint applications through dedicated APIs. There are three ways to create and run search queries against the SharePoint API, each with specific advantages. A description of each approach follows. Keyword Search Queries Search Web Service List Query API (SPQuery Class) Keyword Search Queries: This is the most straightforward approach. Once you specify in your code what keywords to look for, you can just run that query and start retrieving results. For its simplicity, the keywords-only approach comes with limitations. In particular you will not be able to define comparison constraints in the query. Search Web Service: SharePoint Server 2007 exposes most of its search functionalities as a web service. You can reference this web...

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...