次の方法で共有


Nishand's Blog

Welcome to my personal blog, All the information in this bogs is my ideas,findings and thoughts on .Net, Asp.Net and SharePoint.

ALL POSTING ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND

SPWebPartManager doesn't honour the WebPartCancelEventArgs.Cancel value while deleting the webpart

Some scenarios developers may want to restrict users from deleting webparts from a page, the...

Date: 09/21/2009

Setting the property 'AllowMultipleValues' resets the control's type to "Lookup" when it is inherited from SPFieldLookup class.

When you develop a custom field type that inherits from SPFieldLookUp/SPFieldUser(not sure about any...

Date: 09/21/2009

Issue with Multi Field/Group values and SPWorkflowTaskProperties.ExtendedProperties

I encountered an issue when assigning a multi-user data to a workflow task field from within the...

Date: 09/14/2009

FullTextSqlQuery with QueryText length greater than 4096 characters throws ArgumentOutOfRange exception.

The max number of characters that can be passed through FullTextSqlQuery is 4096 characters, beyond...

Date: 10/02/2008

How to implement custom User Profile handler?

1: namespace MyNewProfileHandler 2: { 3: public class MyUserProfileHandler : MySiteProfileHandler 4:...

Date: 08/28/2008

How to add, remove and start workflow programmatically?

Removing Association 1: SPSite site = new SPSite("https://localhost"); 2: SPWeb web = site.OpenWeb();...

Date: 08/27/2008

How to change the Workflow History list programmatically?

1: SPSite spSite = new SPSite("https://localhost"); 2: SPWeb spWeb = spSite.OpenWeb(); 3: SPList...

Date: 08/27/2008

Updating 'ModerationStatus' field

You might have experienced a road block when trying to the update the ‘ModerationStatus’ field with...

Date: 06/07/2008

SPWeb.GetObject() throws an exception when site context changes.

Here is the scenario, you may want to get an object(SPListItem) without iterating through the list...

Date: 06/07/2008

How to delete SPRecycleBin items?

1: SPSite spSite = new SPSite("https://nishand:100/sites/InternetSite/"); 2:...

Date: 06/07/2008

What does the SPWeb.ParserEnabled property do?

When we set SPWeb.ParserEnabled to false, it disables the document parser (there will not be any...

Date: 06/06/2008

Changing the SPWorkflowAssociation.AutoCleanupDays property

By default the SPWorkflowAssociation.AutoCleanupDays property value is set to ‘60’ days, to set this...

Date: 09/11/2007

How to hide subsite's GlobalNavigation nodes/tabs through SharePoint API?

When we create a site either through UI or OM, it will not come as a tab unless you check the option...

Date: 09/10/2007

How to create SearchAlert Programmatically?

Note: Make sure that you have enabled search based alerts SSP-> Search Settings -> Search...

Date: 07/05/2007

How to set user permissions programmatically?

1: SPSite site = null; 2: SPWeb web = null; 3: site = new...

Date: 05/24/2007

The InfoPath form's 'Attachment control doesn't work with SharePoint Workflow forms.

When we use InfoPath form as a workflow form with an attachment control, on selecting a file says...

Date: 05/20/2007

How to update Content Types through the Object Model?

When we add a field to the site content type SharePoint doesn't push-down those changes to the...

Date: 05/20/2007

When you try accessing the ProjectDrillDownPart reference from a windows/console application returns 'ErrorWebPart' object instead of orginal object

Per my observation, this behavior is due to some internal expection occured because of...

Date: 05/20/2007

How to create an XMLFormView control in custom aspx page within SharePoint?

Adding “XmlFormView” control to a custom aspx page that provisioned within SharePoint throws an...

Date: 05/20/2007

UserProfileManager object creating fails when we try to create an instance from a SharePoint workflow application.

A work-around to this issue is, execute the code under admin privileges(impersonate the user), you...

Date: 05/20/2007

"User cannot be found." error when creating an FBA site programmatically through Windows application or a console application.

When we create an FBA site through console app or a windows app, we need to have the membership...

Date: 05/20/2007

How to install custom security trimmer?

  1. Shared Services Administration: ShareServices1> Search Setting >Crawls Rules > Add or...

Date: 05/20/2007

Updating UserProfile Property of type ChoiceList

What I found from my research is, before updating the “ChoiceList” set the “MaximumShown” property...

Date: 05/20/2007

How to set SPFolder.WelcomePage property?

Some SharePoint objects needs an instance to work perfectly, one example is here; Sample 2 works...

Date: 05/20/2007

Debugging Workflows

It would be very painful to debugg the workflow, VS provides help to some extend, however for...

Date: 05/18/2007

Site Customization

.style1 { font-family: trebuchet ms font-size: x-small; } .style2 { font-family: trebuchet ms...

Date: 11/19/2006

Updates are currently disallowed on GET requests. while creating a WSS site

This exception occurs when your try to create a WSS site from an Asp.Net application. Please make...

Date: 08/07/2006