I am trying to create an EventReceiver which gives me the parent folder for currently added documents. For this reason I created an ASPX Page which I display through a "Page Viewer Web Part" on my Sharepoint. Within this
Page I can create new folders in my Document Library. This is working fine. My problem is that I want to create an EventReceiver. The event is firing and I can debug it, but my properties object seems to be missing something. I am not able to get the name
of the parent folder.
Is this because I am displaying my site through a "Page Viewer Web Part"? But that would be strange because I am able to write into my document list.
public override void ItemAdding(SPItemEventProperties properties)
using (SPWeb web = properties.OpenWeb())
string url = properties.BeforeUrl.ToString();
url = url.Substring(0, url.LastIndexOf("/")); URL is ""
1) Should I i
View Complete Post