Archive for March, 2013

The master page setting is scoped at the web level, so the first thing I did was use Get-SPWeb to get a variable for the web I want to change. There are two properties that control the master page settings; MasterUrl and CustomMasterUrl. The former controls the master page used to render the System pages (the ones that start with /_layouts) and the latter controls the master page used to render the content pages. This picture helps explain it better:

(more…)

Advertisements

Quick and Easy, just make sure to type the exact name of the Lists \ Libraries inside the code:

  • Open VS 2010 and Create new Project as Visual Web Part Project.
  • 3 tips need to be┬áconsider and that is : make sure .Net Framework is 3.5 – Platform Target to be 64 bit or Any CPU – last one is to Add Microsoft.SharePoint.dll in the┬áreference.
  • In ASCX File, add following code:
    <ul><%=OutPut %></ul>
  • In CS File, add following code, I have used CAML Query Bulider to get below query: (more…)