Skip to main content

Amol Ajgaonkar

Connect with Amol

Blogs from this Author

Book Interview: “Professional Microsoft SharePoint 2007 Development Using Microsoft Silverlight 2”

Professional Microsoft SharePoint 2007 Development Using Microsoft Silverlight 2 Authors: Steve Fox, Paul Stubbs A few days back I had the pleasure of interviewing Steve Fox, author of "Professional Microsoft SharePoint 2007 Development Using Microsoft Silverlight 2" . This interview gives an overview of the book and what all will be covered in it. Tell […]

DISP_E_EXCEPTION and the Root Web….

Last week we came across a very interesting problem. A routine deployment made some of the web parts throw an exception whenever you made a change to its properties and tried to save the changes. This exception was also seen when we tried to add a web part to a page. It was not only […]

Hidden Fields… I don’t think so !!

I don’t know how or why but sometimes the fields in a content type can get hidden. And you wont get an option of un-hiding the field using the UI. Actually if you try and un-hide the field using the object model, it wont let you. The CanToggleHidden property will be false. And the object […]

Related Rings.

I saw some applications making use of the carosel to display their products and that made me think. What if I had a set of products related to each other. Like if I was displaying Vaccum cleaners then clicking on of the vaccum cleaners would show me another carousel which would display different accessories for […]

Search component UI – Fast and the furious.

To implement a search UI quickly, we can use the content editor web part to generate the UI. After you get the UI on track, how do you get the search working. 1. Add the search core results web part to the page. 2. Configure the search core results web part: a) Set the number […]

Custom SharePoint List Forms. The C# way… (Part 4)

Handling RichText Fields while saving the form content back to the SharePoint List Item is a little tricky. If you try and save the value from this field in the following manner, you won’t see your text in the item. if (objValue is Microsoft.SharePoint.Publishing.WebControls.RichTextField){ Microsoft.SharePoint.Publishing.WebControls.RichTextField richText = (objValue as Microsoft.SharePoint.Publishing.WebControls.RichTextField); item[richText.Field.Title] = richText.Value; } …. […]

Custom SharePoint List Forms. The C# way… (Part 3)

According to the current implementation you will get an error when you click on Attach File link. I guess most of you have seen this dialog box some time or the other after customizing the edit or new forms for a list. The problem: The JavaScript is trying to find the element “part1” (which is […]

Custom SharePoint List Forms. The C# way…. ( Part 1 )

To develop an edit/new/display form for a SharePoint list we have to implement the following steps: Get the list. Get the collection of all the columns If the form is in EDIT mode, get the item which is being edited. Render the columns that you want according to your requirements. Add the Save, Cancel buttons […]

Custom SharePoint List Forms. The C# way…. ( Part 2 )

Accessing the values of the controls is actually very easy. All the controls that you render using the FormField class are collected and stored in a collection. This collection resides in the current FormContext. To access the collection use the following statement: SPContext.Current.FormContext.FieldControlCollection This collection has all the fields that were rendered using the FormField […]

MySites: Change Global Navigation and Visibility.

Often we need to add more tabs to the global navigation of a MySite. By default, you get to see "My Site" and "My Profile" and even if you add more links using the Top Link Bar tool in Settings page, they wont show up in the Top navigation.This is because the provider specified in […]

Ghost Columns in Lists

Sometimes when you delete a column from a list, it does not get deleted completely. If this happens, you don’t see the column in the list settings, but if you try and create a column with the same name, Sharepoint throws an error saying that a column already exists with that name. If you try […]

Modify the Display Forms – Sharepoint Designer

If you want to try and modify the Display Form of a document library using SPD, you should be aware of the following problems: Deleting the existing web part on the page and adding new content might break the document library. (When you click on View Properties of an item, it redirects the user to […]

Load More