Logo 
Search:

Sharepoint FAQ

Submit Interview FAQ
Home » Interview FAQ » SharepointRSS Feeds

How would you go about getting a reference to a site?

  Shared By: Tarang Nayak    Date: Mar 12    Category: Sharepoint    Views: 866

Answer:

Select For Unformatted Code
C#:
1. oSPSite = new SPSite("http:/server");
2.
3. oSPWeb = oSPSite.OpenWeb();

Share: 
 

Didn't find what you were looking for? Find more on How would you go about getting a reference to a site? Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: