Udostępnij za pośrednictwem


Karthick's Blog

That's the secret to life...,replace one worry with another. -This posting is provided "AS IS" with no warranties, and confers no rights-

MOSS 2007 : WSS 3.0 : How do you add items into Choice Site Column type.

Here is the sample code, SPWeb web = new SPSite("https://karthick64:4040/").OpenWeb(); SPField...

Date: 01/10/2007

MOSS 2007 : WSS 3.0 : How do you add a new Site Column to a Content Type using the MOSS object model?

How do you add a new Site Column to a Content Type using the MOSS object model? Here is the sample...

Date: 01/08/2007

MOSS 2007: WSS 3.0: How to add/delete/update site columns by using SharePoint WebService

SharePoint's Webs webservice can be used to add/delete/update site columns. Unfortunatley MSDN/SDK...

Date: 01/02/2007

Unfortunately MCMS 2002 Site Manager doesnt allow you to rename the resource gallery item. In some...

Date: 12/20/2006

WSS 2.0 : How to upload images by using Imaging WebService

Here you go for the sample code. try { //create imaging web service object localhost.Imaging img =...

Date: 12/13/2006

WSS 2.0 : "Getting unauthorized access" error when ‘User must change password at next logon’ is enabled

Problem Background : When you enable "user must change password at next logon", then the...

Date: 12/13/2006

WSS 2.0 : How to enable document library eventhandlers by default

Open the Site definition folder. If you use default Site definition, STS, then open the folder from...

Date: 12/13/2006

WSS 2.0 : stsadm - can't delete wppack with slash in its name

If you install a wppack by using stsadm with slash "/", then you will not be able to uninstall it by...

Date: 12/13/2006

WSS 2.0 : How to programmatically enable/disable the rights at Virtual server level?

To enable all rights at the virtual server level vServer.Config.Properties["virtualserverpermsmask"]...

Date: 12/13/2006

WSS 2.0 : How to save properties of webpart from webpart code

There are two methods, SaveChanges and SaveProperties provided by WSS which sometimes misleading...

Date: 12/13/2006

WSS 2.0 : Technical details about localizing webpart and .dwp file

Problem : You are localizing the SharePoint web parts. You localiz display text and custom property...

Date: 12/13/2006

WSS 2.0 : How to reset Password in WSS - Account Creation Mode

Consider the following scenario. You installed WSS in Account Creation Mode. If a user forgets their...

Date: 12/13/2006

WSS 2.0 : Explicit Impersonation cannot work with SPRoleCollection

The following code will fail if the user doesnot have Admin previlage SPRoleCollection RC =...

Date: 12/13/2006

MCMS 2002 : You cannot add NT Authority domain and Authenticated users in CMS

PROBLEM:You cannot add NT Authority domain and Authenticated users in MCMS 2002 Site...

Date: 12/13/2006

MCMS 2002 : Getting “Unable to cast object of type system.net.filewebresponse

PROBLEM========Getting “Unable to cast object of type system.net.filewebresponse to type...

Date: 12/13/2006

Here you go for the steps to enalbe your custom fields to search. Step 1: Add the custom column...

Date: 12/13/2006

WSS 2.0 : How to differentiate workspace site and team site.

The following is the sample code snippet for how to differentiate workspace site and team site. Also...

Date: 12/13/2006

WSS 2.0 : The server instance specified was not found. Please specify the server's address and port.

Consider the following scenario. You enabled SSL for your SharePoint Site. You pass a Fully...

Date: 12/12/2006

WSS 2.0: The field values are not visibile when you update field Meta Data through Front Page RPC calls.

PROBLEM: The field values are invisibile when you update field's Meta Data through Front Page RPC...

Date: 12/11/2006

WSS 2.0 : Getting "Assembly, TagPrefix, and Namespace are required on Register directives" error message

When you edit a site in front page and and specify the register tag for the user control as <%@...

Date: 12/05/2006

MCMS 2002 : How to install SQL DMO and SMO without installing SQL server 2005?

When you connect to MCMS 2002 DB in DCA you may get either SQL DMO needed / SQL SMO required error...

Date: 12/01/2006

WSS 3.0: How to add settings sub menu for your custom web part – Verbs Explained...

Its pretty simple and straight forward. ;). The web part menu has been handled by the...

Date: 11/30/2006

Starting Point: Development with WSS 3.0

· Install Windows Sever 2003 SP1 with IIS 6.0 · Install SQL Server 2000 / 2005 · Install Visual...

Date: 11/30/2006

WSS 3.0: Getting "No SharePoint Site exists at the specified URL" - Visual Studio 2005 Extensions for SharePoint

Getting the following error when I deploy my webpart by using Visual Studio 2005 extensions for...

Date: 11/30/2006

WSS 3.0 : How to add a new ContentType?

Here you go for the sample, SPWeb MyWeb = new...

Date: 11/28/2006

Microsoft.SharePoint.Navigation API allow us to add new link to the quick launch bar of your site....

Date: 11/28/2006

WSS 3.0 - How to create new SharePoint Feature?

How to create New Feature in WSS 3.0? How to add new menu item under “Site Settings” menu in wss...

Date: 11/28/2006

The following is the sample code snippet to add links to the Sites listing. Unfortunatly this is not...

Date: 05/31/2006

How to hide Created at and Last Modified at details in the DispForm.aspx and EditForm.aspx?

Workaround 1:============ 1. Open the site in FrontPage 2. Open the Lists Folders 3. Open the List...

Date: 04/25/2006

SPWeb.File.Add() it throws "The server instance not found" error message

PROBLEM When we use the FQDN name in the SPWeb object, and calls the Add() method, we will get the...

Date: 04/22/2006

SPS 2003 : "Cannot complete this action" Error message in custom list definition

Problem: While you create custom list instances on ONET.XML by adding to the configuration section,...

Date: 04/22/2006

SPS 2003 : How to persist an object state in to a session variable from custom web part?

Problem: How to persist an object state in to a session variable from custom web part? When you use...

Date: 04/22/2006

CMS 2002 : Getting "Class not registered" in Every SCA Tab on configure

Problem : Getting "Class not registered" in Every SCA Tab on configure Resoultion : Re-register the...

Date: 04/22/2006

Sharepoint : How to use Event List as resource organizer (Meeting Resource Organizer)

Out of box SharePoint 2003 doesnt support this functionality which is essential. I found a...

Date: 04/22/2006

CMS 2002 SP1 A : Installation - Getting "SQL-DMO (from SQL SP2) or above (required by MCMS Server) not installed" error

Problem: When you install CMS-2002 SP1a and the SQL Server installed in a remote machine, you will...

Date: 04/22/2006

How to enable document library event handlers for the newly created document libraries at the list definition level

The List definition files can be configured in such a way that the event handler configured...

Date: 04/19/2006

SharePoint : User Management - SPS

Here you go for the sample code snippets for user management in SPS - //Add users to the portal area...

Date: 04/09/2006

SharePoint : User Management - WSS

Its hard to search from the SDK to find APIs and methods for the user managment. I have compiled the...

Date: 04/09/2006

SharePoint : How to hide a field from the Edit Form?

I am not sure, how this can be achieved thro' UI. But here, Sharepoint Object model helps us....

Date: 04/06/2006

SharePoint : How to retrieve all the properties from a list by using the GetListItems() method.

The example given in the SDK doesnt retrieve all the properties of the list. For e.g., I want to...

Date: 04/06/2006

SharePoint : How to delete a sub folder in a document library programmatically

Unfortunately the sample code to delete the subfolder from the document library is not available in...

Date: 04/06/2006

SharePoint : How to add banner page at the Portal site.

This is everyone's requirement, but unfortunately we do not have any out of box SharePoint...

Date: 04/06/2006

SharePoint: Search Results are not being returned when we use special characters.

We could face a problem in searching the special characters by using the GET method. For example, I...

Date: 04/06/2006

SharePoint: How to retrieve specific version of file from a document library thro’ programmatically?

The SPFile.Versions API can be used to retrieve the specific version of the document library. I have...

Date: 03/28/2006

SharePoint: How to add news listings to the News Area thro’ programmatically

I compiled a sample piece of code snippet to add news listings to the news area. //Site object...

Date: 03/27/2006

SharePoint: PortalContext – gives “Value cannot be null. Parameter name: site”

I came across the following problem in PortalContext API. Say I have created a portal with port...

Date: 03/27/2006

SharePoint: How to retrieve the list of item from the Sub folders by using Lists.asmx web service

Unfortunately SPS SDK doesn’t provide sample to get the details from the subfolder. I have compiled...

Date: 03/27/2006

SharePoint : SPWeb.AlternateHeader issue – does not accept empty “” string

Recently I see this problem in SPWeb object. I have configured the alternate header in the onet.xml....

Date: 03/27/2006

MCMS 2002 : List of some important hotfixes for CMS 2002 SP2

912356 - The Web server may stop responding when you try to generate a channel path by using the...

Date: 03/22/2006

SharePoint : Programmatically access "Manage crawls of Site Directory"

Programmatically access "Manage crawls of Site Directory" The Manage Crawls of Site directory is a...

Date: 03/21/2006

Next>