Quantcast
Channel: SharePoint 2013 - Development and Programming Forum
Viewing all articles
Browse latest Browse all 1404

SPWeb oWebsite = SPContext.Current.Web throws null reference exception

$
0
0

I was working on event handler..in the item Added method i have typed in

SPWeb oWebsite = SPContext.Current.Web

but this does not seem to work as it is throwing  null reference exception .


Viewing all articles
Browse latest Browse all 1404

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>