Problem In Event Receivers in sharePoint?
- by JanardhanReddy
Hi all,
iam creating folders in document library from third party app.once the folder is created iam changing the metadata fileds in the documetn libary by using event receivers.
so i wrote code in itemadded event to set the metadata vlaues of created folder
public override void ItemAdded(SPItemEventProperties properties)
{
DataSet strDs = new DataSet();
try
{
DisableEventFiring();
SPListItem item = properties.ListItem;
strName = item["Name"].ToString();
EnableEventFiring();
}
}
but iam getting null value in properties.ListItem. so please tell me how we can get the current item values in properties.ListItem.
thanks in advance.