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.

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 workaround and here I provide the details. Its little tricky, so if you miss any step, the functionality may not work. I have attached the sample files here. 1.
Posted by Karthikeyan | 2 Comments
Filed under:

Attachment(s): CodeSamples.zip

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 automatically for the newly created document libraries. Here I provide the details of how to do it. Open the Site definition folder. If you use default Site definition,
Posted by Karthikeyan | 13 Comments
Filed under:

SharePoint : User Management - SPS

Here you go for the sample code snippets for user management in SPS - //Add users to the portal area or portal site level TopologyManager tm = new TopologyManager(); PortalSite ps = tm.PortalSites[ new Uri("http://karthickmain:9092") ]; Microsoft.SharePoint.Portal.PortalContext
Posted by Karthikeyan | 0 Comments
Filed under:

SharePoint : User Management - WSS

Its hard to search from the SDK to find APIs and methods for the user managment. I have compiled the set of sample code snippets for the User Management in WSS - //Add user to the site groups SPWeb mySite = new SPSite("http://karthickmain:9091/default.aspx").OpenWeb();
Posted by Karthikeyan | 1 Comments
Filed under:

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. localhost.Lists listService = new localhost.Lists(); listService.Credentials= System.Net.CredentialCache.DefaultCredentials; XmlDocument xmlDoc = new System.Xml.XmlDocument();
Posted by Karthikeyan | 1 Comments
Filed under:

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 retrieve the file size. This property not found the results returned by the SDK sample. The work around is as follows. localhost.Lists listService = new localhost.Lists();
Posted by Karthikeyan | 2 Comments
Filed under:

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 the SharePoint SDK. The sample code is as follows. SPWeb web = new SPSite("site url").OpenWeb(); web.Folders[“Document library name”].SubFolders.Delete(“Folder
Posted by Karthikeyan | 1 Comments
Filed under:

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 functionality. I want to have a banner page at the top and want have a html file content as include directive. Once I modify HTML file at one place then that should
Posted by Karthikeyan | 0 Comments
Filed under:

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 have a document which has the German characters in it. I have indexed the document already. In the URL type the following, and hit enter. http://karthickmain:9091/Search.aspx?k=veröffentlichten
Posted by Karthikeyan | 0 Comments
Filed under:

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 compiled a sample code snippet to retrieve the specific version of the document library. //Open the web SPWeb web = new SPSite("http://karthickmain:9091/sites/siteb").OpenWeb();
Posted by Karthikeyan | 3 Comments
Filed under:

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 SPSite site = new SPSite("http://karthickmain:9090"); //Get the portal context PortalContext context = PortalApplication.GetContext(site.ID); //Get the news
Posted by Karthikeyan | 2 Comments
Filed under:

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 number 9091. I am using the following code snippet to retrieve the portal context. [working though we changed the port number] TopologyManager tm = new TopologyManager();
Posted by Karthikeyan | 1 Comments
Filed under:

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 a sample code snippet to achieve it. Here you go for the code. localhost.Lists listService = new localhost.Lists(); listService.Credentials = System.Net.CredentialCache.DefaultCredentials;
Posted by Karthikeyan | 1 Comments
Filed under:

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. I created the sites. Now I want to revert back the alternate header configured and set it to empty. As we know already, what ever the modification made
Posted by Karthikeyan | 0 Comments
Filed under:

SharePoint : Programmatically access "Manage crawls of Site Directory"

Programmatically access "Manage crawls of Site Directory" The Manage Crawls of Site directory is a Area Listing as like Best Bet Keywords. The following piece of code snippet can be used to access the "Manage crawls of Site Directory" through SPS object
Posted by Karthikeyan | 1 Comments
Filed under:
 
Page view tracker