Friday, January 25, 2013

SPWeb Class with SharePoint 2013

SPWeb Class represents a web site.

The AllWebs Property of the SPSite Class will return all web sites within the site collection.

SPSite sSiteCollection = new SPSite("http://shalvin");
foreach(SPWeb sw in sSiteCollection.AllWebs)
  listBox1.Items.Add("Root web ? " + sw.IsRootWeb);
  listBox1.Items.Add("  ");

The Webs property of SPWeb Calss will Return all the immediate child web sites beneath a web site.

SPcontext ctx = SPContext.Current;
SPSite site = ctx.Site;

SPWeb sw = sw.RootWeb; 

foreach(SPWeb child in sw.Webs)

SPSite Class with SharePoint 2013

SPSite Class Represents a collection of sites in a web application. It comprises of the top level site and all its sub sites.
SPSite Class is under Microsoft.SharePoint namespace. Microsoft.SharePoint.dll is placed in Program Files\Common Files\Microsoft Shared\Web Server Extensions\15, also  called 15 hive.

We will start with a SharePoint 2013 Visual Web Part project.

using Microsoft.SharePoint;

SPSite sSiteCollection = new SPSite("http://shalvin");

listBox1.Items.Add("Conn String: " + sSiteCollection.ContentDatabase.DatabaseConnectionString);
listBox1.Items.Add("Web App: " + sSiteCollection.WebApplication.Name);

Sunday, January 13, 2013

Trip to Arthunkal via State Highway 66

Today I took a trip to Arthunkal (Aleppey Disstrict) via State Highway 66 from Marine Drive North End. Though people used to take the NH way because it is the more familiar route, I prefer SH 66. SH 66 is pollution and traffic free. There are a lot of beaches on the way like Andhakaranazhi Beach.

Tuesday, January 8, 2013

Kerala Microsoft User Group Meeting - 19th Jan 2013 (Saturday) - Kochi

Venue: Orion India Systems Pvt Ltd, 103, 2nd floor, Tejomaya, Info park SEZ, Kakkanad, Kochin-682030  

09:30 - 09:40 Community updates
09:40 - 10:40 Windows Azure Web Sites by Shiju
10:40 - 11:40 TBD by Yanesh

11:40 - 11:50 Tea Break & Networking (10 min)
11:50 - 12:50 WinRT / Windows8 via C#  by Anoop

12.50 - 01:00 Ask the experts