Welcome to MSDN Blogs Sign in | Join | Help

March 2008 - Posts

SPException: This task is currently locked by a running workflow and cannot be edited

Once, I had faced a strange issue with one of my custom workflow which I had developed using Visual Studio. I had several tasks that get created during the workflow and so I added the task creation/completion logic to a Custom Activity. The task has a
Posted by sowmyancs | 3 Comments

Customization of Title field in Picture Library

How we can make Title field as required in Picture libraries:- A picture library is created based upon a base template “PictureLibrary”. By default, the title field doesn’t contains any validation. If you want to make it as required one, you need to customize
Posted by sowmyancs | 2 Comments

Creating a read-only field with default value in a SharePoint list

Whenever we create a column with type “Single line of text” in SharePoint lists we will get an option for providing default value. If we provide the default value and once if we add any item to that list with that field , then we can see the default value
Posted by sowmyancs | 10 Comments

Can we get the HTTPContext in custom event handlers in SharePoint ?

Yes, but not everywhere. Means, we will get the HTTPContext from the initial call of the base class default constructor from the particular class which inheriting the event receiver class. I have tested only with SPItemEventReceiver class and it does
Posted by sowmyancs | 4 Comments

debugging the inline code of custom layout pages in SharePoint

Have you ever tried to debug the inline code of custom layout pages of a SharePoint site ?. I have tried once and I couldn't able to debug the inline code by just opening it in VS.NET IDE and attaching the w3wp processor to the debugger. Initially I couldn't
Posted by sowmyancs | 3 Comments

Exception : "The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again."

Sometimes whenever we update any list item, list or SPWeb instance you may get " The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again" . This is because of some security validation
Posted by sowmyancs | 1 Comments

create publishing pages in portal sites programmatically and add it into a specific folders inside the Pages library

Well, we all know how we can create publishing pages in portal sites from UI. In portal sites, whenever we create a publishing page we need provide the name, title, description and a layout page. Once if we created the publishing page then we can check
Posted by sowmyancs | 9 Comments

Programmatically create a view (custom view) of a list and change the view

If you want to programmatically create a view of a list and if you want to change the existing view of a ListViewWebPart to the custom view you can develop it by referring the following code sample. code snippet for creating a custom view =====================================
Posted by sowmyancs | 9 Comments

A way of hiding ListViewWebParts in all pages of SharePoint site in a single shot

Recently, I got a support request from one of my customer and their requirement was to hide all the listview web parts from all the pages in a SharePoint site based upon the log in user's security permission. First, I planned to implement that functionality
Posted by sowmyancs | 2 Comments

How to modify the custom People/Groups type column of a SharePoint List using Lists.ASMX

SharePoint has more than ten out-of-the-box webservices which will provide lots of functionalities that we want. Lists.asmx is one of such SharePoint webservice that help us to do certain operations with SharePoint lists. We can locate that webservice
Posted by sowmyancs | 5 Comments

Can we update the values of "Created By", "Modified By" columns in SharePoint lists ?

Ofcourse, you can. Created By & Modified By columns are "Person or Goup" type columns. In SharePoint all the lists has these columns by default. You can't update the values of these columns from UI. But, you can do it through SharePoint APIs. I have
Posted by sowmyancs | 32 Comments
 
Page view tracker