Problem In Event Receivers in sharePoint?

Posted by JanardhanReddy on Stack Overflow See other posts from Stack Overflow or by JanardhanReddy
Published on 2010-05-03T07:25:29Z Indexed on 2010/05/03 7:28 UTC
Read the original article Hit count: 187

Filed under:

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.

© Stack Overflow or respective owner

Related posts about sharepoint