<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Karthick&amp;#39;s Blog</title><subtitle type="html">That&amp;#39;s the secret to life...,replace one worry with another.
-This posting is provided &amp;quot;AS IS&amp;quot; with no warranties, and confers no rights- </subtitle><id>http://blogs.msdn.com/b/karthick/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/b/karthick/atom.aspx" /><generator uri="http://telligent.com" version="5.6.50428.7875">Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><updated>2006-12-13T15:37:00Z</updated><entry><title>MOSS 2007 : WSS 3.0 : How do you add items into Choice Site Column type.</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2007/01/10/moss-2007-wss-3-0-how-do-you-add-items-into-choice-site-column-type.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2007/01/10/moss-2007-wss-3-0-how-do-you-add-items-into-choice-site-column-type.aspx</id><published>2007-01-10T22:24:00Z</published><updated>2007-01-10T22:24:00Z</updated><content type="html">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 in choices) { choiceFields.Choices.Add(choice); } choiceFields.Update(); 
 Keep Exploring... :)...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2007/01/10/moss-2007-wss-3-0-how-do-you-add-items-into-choice-site-column-type.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1445535" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/b/karthick/archive/tags/SharePoint/" /></entry><entry><title>MOSS 2007 : WSS 3.0 : How do you add a new Site Column to a Content Type using the MOSS object model?  </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2007/01/08/moss-2007-wss-3-0-how-do-you-add-a-new-site-column-to-a-content-type-using-the-moss-object-model.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2007/01/08/moss-2007-wss-3-0-how-do-you-add-a-new-site-column-to-a-content-type-using-the-moss-object-model.aspx</id><published>2007-01-08T17:08:00Z</published><updated>2007-01-08T17:08:00Z</updated><content type="html">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 SPFieldLink (web.Fields[ "abc" ])); 
 myCT.Update(); 
 
 Note : 
 The following MSDN article speaks about “Updating Child Content types”. 
 http://msdn2.microsoft.com/en-us/library/ms442695.aspx 
 The example given in the article...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2007/01/08/moss-2007-wss-3-0-how-do-you-add-a-new-site-column-to-a-content-type-using-the-moss-object-model.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1434397" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>MOSS 2007: WSS 3.0: How to add/delete/update site columns by using SharePoint WebService</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2007/01/02/moss-2007-wss-3-0-how-to-add-delete-update-site-columns-by-using-sharepoint-webservice.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2007/01/02/moss-2007-wss-3-0-how-to-add-delete-update-site-columns-by-using-sharepoint-webservice.aspx</id><published>2007-01-02T20:34:00Z</published><updated>2007-01-02T20:34:00Z</updated><content type="html">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. Webs (); 
 //url for the webservice 
 websService.Url = " http://localhost:4040/_vti_bin/Webs.asmx " ; 
 //credential 
 websService.Credentials = System.Net. CredentialCache .DefaultCredentials; 
 
 //xmldocument object 
 XmlDocument...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2007/01/02/moss-2007-wss-3-0-how-to-add-delete-update-site-columns-by-using-sharepoint-webservice.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1399828" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/b/karthick/archive/tags/SharePoint/" /></entry><entry><title>MOSS 2007 : CMS 2002 Migration Issue : How to rename a resource Gallery Item?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2006/12/20/moss-2007-cms-2002-migration-issue-how-to-rename-a-resource-gallery-item.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2006/12/20/moss-2007-cms-2002-migration-issue-how-to-rename-a-resource-gallery-item.aspx</id><published>2006-12-21T00:35:00Z</published><updated>2006-12-21T00:35:00Z</updated><content type="html">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 items will be differentiated by using their guids. But this will endup a problem when you are migrating to MOSS 2007, and you will get " Leaf names are not unique. " error message. And the suggestion is you have to rename the resource gallery item. Here...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2006/12/20/moss-2007-cms-2002-migration-issue-how-to-rename-a-resource-gallery-item.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1333613" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>WSS 2.0 : How to upload images by using Imaging WebService</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-upload-images-by-using-imaging-webservice.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-upload-images-by-using-imaging-webservice.aspx</id><published>2006-12-13T20:54:00Z</published><updated>2006-12-13T20:54:00Z</updated><content type="html">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; //for results System.Xml.XmlDocument resdoc= new System.Xml.XmlDocument(); System.Xml.XmlNode resnode = resdoc.CreateNode(System.Xml.XmlNodeType.Element,"Result",""); System.IO.FileStream fs = new System...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-upload-images-by-using-imaging-webservice.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276645" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/b/karthick/archive/tags/SharePoint/" /></entry><entry><title>WSS 2.0 : "Getting unauthorized access" error when ‘User must change password at next logon’ is enabled</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-getting-unauthorized-access-error-when-user-must-change-password-at-next-logon-is-enabled.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-getting-unauthorized-access-error-when-user-must-change-password-at-next-logon-is-enabled.aspx</id><published>2006-12-13T20:48:00Z</published><updated>2006-12-13T20:48:00Z</updated><content type="html">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, follow these steps: 
 
 Click START, and then click RUN 
 In the open box type the following and then press ENTER: Regsvr32 “%systemroot%\system32\inetsrv\iisadmpwd\iispwchg.dll 
 To create the IISADMPWD virtual directory, follow...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-getting-unauthorized-access-error-when-user-must-change-password-at-next-logon-is-enabled.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276597" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/b/karthick/archive/tags/SharePoint/" /></entry><entry><title>WSS 2.0 : How to enable document library eventhandlers by default</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-enable-document-library-eventhandlers-by-default.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-enable-document-library-eventhandlers-by-default.aspx</id><published>2006-12-13T19:33:00Z</published><updated>2006-12-13T19:33:00Z</updated><content type="html">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 not supported by Microsoft. Microsoft recommends using custom Site Definition. 
 
 Open the List Definition folder. If you use default list definition for document library, then open the “DOCLIB” folder in the LISTS folder Open the “SCHEMA.XML...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-enable-document-library-eventhandlers-by-default.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276525" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/b/karthick/archive/tags/SharePoint/" /></entry><entry><title>WSS 2.0 : stsadm - can't delete wppack with slash in its name </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-stsadm-can-t-delete-wppack-with-slash-in-its-name.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-stsadm-can-t-delete-wppack-with-slash-in-its-name.aspx</id><published>2006-12-13T19:01:00Z</published><updated>2006-12-13T19:01:00Z</updated><content type="html">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 model helps us to resolve the problem. Run the following code to remove the wppack that has "/" in the path. Then install your webpart by using stsadm by using the "\" in the path. 
 Example, running the following command will endup with the above problem...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-stsadm-can-t-delete-wppack-with-slash-in-its-name.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276309" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/b/karthick/archive/tags/SharePoint/" /></entry><entry><title>WSS 2.0 : How to programmatically enable/disable the rights at Virtual server level?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-programmatically-enable-disable-the-rights-at-virtual-server-level.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-programmatically-enable-disable-the-rights-at-virtual-server-level.aspx</id><published>2006-12-13T18:59:00Z</published><updated>2006-12-13T18:59:00Z</updated><content type="html">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"; 
 Keep Coding ;)...(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-programmatically-enable-disable-the-rights-at-virtual-server-level.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276180" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>WSS 2.0 : How to save properties of webpart from webpart code</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code.aspx" /><id>http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code.aspx</id><published>2006-12-13T18:37:00Z</published><updated>2006-12-13T18:37:00Z</updated><content type="html">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 the web part from out side the web part code. For e.g., the console application, windows application etc.., 
 SPWebPartCollection.SaveProperties - This method is used to save the properties within the web part code....(&lt;a href="http://blogs.msdn.com/b/karthick/archive/2006/12/13/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276117" width="1" height="1"&gt;</content><author><name>MSDNArchive</name><uri>http://blogs.msdn.com/MSDNArchive/ProfileUrlRedirect.ashx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/b/karthick/archive/tags/SharePoint/" /></entry></feed>