SPWeb is a single website in SharePoint residing in a Site Collection (SPSite).

learn more… | top users | synonyms

1
vote
1answer
1k views

SPImmediateAlertsJobDefinition errors in Event Log

I am sporadically getting errors in my Event Log for SPImmediateAlertsJobDefinition with the ID 6893, I've seen some of the posts out there pointing towards issues with the SharePoint assembly files. ...
11
votes
3answers
2k views

Should I dispose these SPSite and SPWeb objects?

Is it necessary to dispose the site and web objects in the following code? If so, how do I do this? Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load Dim site ...
0
votes
2answers
398 views

Battling to get SPWeb, Sharepoint 2010 Object Model.

I have the following URL to a subsite : http://myServerName/subSiteName I know the URL to the subsite upfront. So far I'm trying this, but it won't work. using (SPSite spSite = new ...
2
votes
2answers
464 views

SPWeb.ParserEnabled

What does the SPWeb.ParserEnabled property do? I had a problem for some document which are not able to update metadata.If i use ParserEnabled = false.it is working fine for me. if i use ...
1
vote
3answers
1k views

Storing custom properties for a SharePoint Site

Let's say you are building a Project Management solution where each Project equals one site (SPWeb object). Each project has it's properties like: Project Manager, Budget, Customer, Description, ...
1
vote
1answer
127 views

How to properly dispose of SP objects although not assigned?

If I assign SPContext.Current.Site.OpenWeb().Title to a string, do I need to dispose of it (if possible)? string title = SPContext.Current.Site.OpenWeb().Title; I'm still a little fuzzy on when to ...
4
votes
2answers
3k views

How to access a file in the current url or _layouts folder?

My code behind code from the aspx webpage uses a transform.xsl to do some custom xslt transformation. Scenario 1: Try to get the file from the _layouts folder. SPWeb web = SPContext.Current.Web; ...
1
vote
1answer
624 views

Memory Leak - Disposing SPSite and SPWeb?

So I read through another post here http://www.sharepointoverflow.com/questions/1047/disposal-of-spwebs-created-using-spsite-openweb. Currently I only dispose of the SPSite object, and from my ...
4
votes
5answers
3k views

Disposal of SPWebs created using SPSite.OpenWeb()

After reading some answers/comments on Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs, I opened up Reflector to dig deeper into the SPSite and SPWeb classes. I ran into a surprise, ...