Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » SharePoint   (RSS)
Sorry, but there are no more tags available to filter with.

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

Here is the sample code, SPWeb web = new SPSite(" http://karthick64:4040/").OpenWeb (); SPField spField = web.Fields["MyChoice"]; SPFieldChoice choiceFields = (SPFieldChoice)spField; string[] choices = new string[3] {"x", "y", "z"}; foreach (string choice
Posted by Karthikeyan | 1 Comments
Filed under:

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 doesnot has the sample yet. Here I provide the sample code. //webs webservice object localhost. Webs websService = new ContentTypeAndSiteColumn.localhost.
Posted by Karthikeyan | 4 Comments
Filed under:

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 = new ImagingTest.localhost.Imaging(); //set url img.Url = http://localhost:8081/sites/site1/_vti_bin/Imaging.asmx ; //Set credential img.Credentials = System.Net.CredentialCache.DefaultCredentials;
Posted by Karthikeyan | 0 Comments
Filed under:

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 corresponding user will face the unauthentication issues. To resolves this, you may enable IISADMPWD for WSS How to enable the IISADMPWD for WSS? To register iispwchg.dll,
Posted by Karthikeyan | 1 Comments
Filed under:

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 the following location. “C:\program files\common files\Microsoft Shared\web server extensions\60\template\1033\STS Note: Modifying the default files is
Posted by Karthikeyan | 0 Comments
Filed under:

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 using the stsadm tool :( . The story not endup here, you will not be able to install the latest version of your webpart :(. However SharePoint object
Posted by Karthikeyan | 0 Comments
Filed under:

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 users. Here I provide details for which method to use and when to use. SPWebPartCollection.SaveChanges() - This method is used to save the changes made in
Posted by Karthikeyan | 0 Comments
Filed under:

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 names/descriptions using the ResourceManager and satellite assemblies. However, the web part “dwp” files in the cab file contain a title and description
Posted by Karthikeyan | 1 Comments
Filed under:

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 password, they currently have to contact the admin and they in turn need to go into the site administration and manually reset the password. This issue
Posted by Karthikeyan | 1 Comments
Filed under:

SPS 2003 : How to enable your custom fields (columns) for search

Here you go for the steps to enalbe your custom fields to search. Step 1: Add the custom column (EmpName) in the Shared Documents document library Step 2: Add a document into the shared documents with custom column values Step 3: Crawl the content database
Posted by Karthikeyan | 0 Comments
Filed under:

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 this code list out all the workspace site in the server. SPGlobalAdmin globalAdmin = new SPGlobalAdmin(); //Get all the virtual servers. foreach(SPVirtualServer
Posted by Karthikeyan | 0 Comments
Filed under:

Sharepoint 2003 : How to add links to the "Sites I have added" listing at the portal

The following is the sample code snippet to add links to the Sites listing. Unfortunatly this is not documented in the Sharepoint SDK. //Get the Site SPSite site = new SPSite(<URL>); //Get the portal context PortalContext context = PortalApplication.GetContext(site.ID);
Posted by Karthikeyan | 11 Comments
Filed under:

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 following error message. The server instance not found Root Cause: In stsadm.exe or any executable, STS only uses the IIS metabase to figure out the IIS
Posted by Karthikeyan | 7 Comments
Filed under:

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, getting an error "Cannot complete this action" in the template selection screen Resolution: For the Custom List Definition, the DefaultDescription property
Posted by Karthikeyan | 6 Comments
Filed under:

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 the System.Web.HttpContext.Current.Session property you will get the error message "object reference not to set an instance of the object". Work Around:
Posted by Karthikeyan | 3 Comments
Filed under:
More Posts Next page »
 
Page view tracker