tags:

views:

31

answers:

1

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.

A: 

Take a look at this post, there is all you need to know when working with eventreceivers : http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=25

Don Carnage