Skip to main content

Amol Ajgaonkar

Connect with Amol

Blogs from this Author

ASP.NET User Controls: Dynamically created and hosted in Web Part.

Dynamic controls & Post back Problem: Managing an array of Controls. Problem: When you create an array of controls dynamically there are chances that you would notice the following behavior: 1. When you click on one of the controls a post back will be triggered for some other control in the array of controls. 2. […]

Adding a menu item to the Welcome Menu

To add an item to the Welcome menu in MOSS. Create a feature. Feature xml should like: <?xml version="1.0" encoding="utf-8"?><Feature Id="GUID" Title="Welcome menu Item" Description="" Version="1.0.0.0" Scope="Site" xmlns="http://schemas.microsoft.com/sharepoint/"> <ElementManifests> <ElementManifest Location="elements.xml"/> </ElementManifests></Feature> Elements.xml should look like: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="PersonalActionsMenu_UniqueName" GroupId="PersonalActions" Location="Microsoft.SharePoint.StandardMenu" Sequence="101" Title="YOUR TITLE " Description="DESCRIPTION" ImageUrl="YourImageURL"> <UrlAction Url="YOUR_URL"/> </CustomAction></Elements> Now use stsadm to […]

Updating an Item from a workflow monitoring the OnItemChanged event.

Scenario: Workflow is waiting on the OnItemChanged event of a SP list. We need to update the same item from the workflow. Solution: Do not use the Update method of SPListItem. This will surely make the workflow go into recursion. Instead add a CallExternalMethod Activity. Select the interface type as IListItemService Method : UpdateListItem Bind […]

Alternate URL mapping and Custom ASPX pages

Assume you have mapped a URL to a Sharepoint Site and are accessing the site from the extranet. This sharepoint site gets accessed locally from a port other than 80.If you develop a custom aspx page then you would generally put the page in the _layouts folder and the dll in the Bin folder of […]

Capturing the OnItemChanged event on a List

To catch the onItemChanged event of any Sharepoint list in a workflow, the following needs to be done: Add a CallExternalMethod Activity, set the interface to Microsoft.SharePoint.Workflow.IListItemService Set the method name to InitializeForEvents Bind the ItemId, ListId to ItemID and ListId in the workflow properties. Add a HandleExternalEvent activity and specify the following properties:InterfaceType to […]

Load More