spsite Questions

4

I am trying to create a spsite of object for sharepoint search but i am getting exception in production as website not found SPSite site = new SPSite("sitename"); ServerContext scon = ServerContex...
Constituent asked 30/4, 2009 at 11:54

3

Does anybody know why SPSite.Exists(url) return false although the url exists. If I check the above statement, it returns false. But I can open the site without any problems if I directly use S...
Linlithgow asked 9/12, 2011 at 7:8

1

Solved

Could anybody explain the difference between SP.Web and SP.Site entities? As I understand SP.Site contains different SP.Webs, that represent SiteCollections. Is it correct? Could you please s...
Polo asked 11/11, 2012 at 19:56

3

Solved

I'm hoping someone can help me out. I need to get the root web of the current site from the SPContext. It's easily done with the following SPContext.Current.Site.RootWeb I'm comfortable with the...
Christie asked 13/6, 2011 at 11:9

6

So far, in my research I have seen that it is unwise to set AllowUnsafeUpdates on GET request operation to avoid cross site scripting. But, if it is required to allow this, what is the proper way t...
Gerrilee asked 17/10, 2008 at 21:14
1

© 2022 - 2024 — McMap. All rights reserved.