Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

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 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 code SPWeb web = new SPSite ( " http://localhost:4040 " ).OpenWeb(); SPContentType myCT = web.ContentTypes[ "myNewContentType" ]; myCT.FieldLinks.Add( new
Posted by Karthikeyan | 2 Comments

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:

MOSS 2007 : CMS 2002 Migration Issue : How to rename a resource Gallery Item?

Unfortunately MCMS 2002 Site Manager doesnt allow you to rename the resource gallery item. In some situation you may end up duplicate entries in the resource gallery item names. MCMS 2002 allows you to have multiple resource items with same name. The
Posted by Karthikeyan | 1 Comments

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 programmatically enable/disable the rights at Virtual server level?

To enable all rights at the virtual server level vServer.Config.Properties["virtualserverpermsmask"] = "-1"; To disable the “Manage Site Groups” permission at the virtual server level vServer.Config.Properties["virtualserverpermsmask"] = "2113867535";
Posted by Karthikeyan | 0 Comments

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:

WSS 2.0 : Explicit Impersonation cannot work with SPRoleCollection

The following code will fail if the user doesnot have Admin previlage SPRoleCollection RC = CurrentWeb.CurrentUser.Roles; The CurrentWeb.CurrentUser.Roles method requires Manage Site Groups permission and the impersonation does not work with SPRoleCollection
Posted by Karthikeyan | 0 Comments

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 Manager RESOLUTION: 1. Create a local user group 2. Add the Authenticated users to the newly created local user group 3. Add the local user group in CMS
Posted by Karthikeyan | 0 Comments

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 system.net.httpwebresponse” error message in client side import scirpt RESOLUTION ============ The sdo package path has been specified as standard windows physical
More Posts Next page »
 
Page view tracker