Hi, i developed an ItemAdding Event handler. i want this eventhandler to be generic. i am trying to use this in the code, when debugged i get Object reference not set to an instance. can anyone help me in the right direction?
string siteUrl = properties.WebUrl; //throws object reference not set to an instance here
using (SPSite CurrentSite = new SPSite(siteUrl))
using (SPWeb CurrentWeb = CurrentSite.OpenWeb())
SPList CurrentList = CurrentWeb.Lists[properties.ListId];
View Complete Post