Welcome to MSDN Blogs Sign in | Join | Help

April 2006 - Posts

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 4. Open the DispForm.aspx page 5. In the Design Mode, Right Click on the List select "Edit SharePointListForm" 6. Remove the fields Apply the same steps
Posted by Karthikeyan | 4 Comments

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:

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 following DLL with “regsvr32 /i <DLL_Name>”. Urlmon.dll

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

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 get the prerequisites not installed for “SQL-DMO (from SQL SP2) or above (required by MCMS Server)”. Root Cause : The VS developer components for CMS 2002

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:
 
Page view tracker