SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a Master Page I need to insert a Data View that pulls information from the parent site. I believe I can do this with a Content Query Web Part but I cannot put a web part like this into a Master Page.

EDIT: What I want to do is make the contact info for my company editable in the browser. The contact info is in the footer of every master page that will be used on any site and subsite. My current way of doing this is make a list with an entry that has the contact info (phone, address, etc.) and then insert a Data View web part into the footer of the master page. This works fine if I make this contact info on every site but its against my religion to make people change the same thing in 5 places (if they have to change the contact info in the future). What I want to do instead is have 1 list with 1 entry that have the contact info and point to this entry from any site I need to. That way my company can then change the info in a web form in browser without code.

share|improve this question

You can accomplish this using XsltListViewWebPart for more detailed steps check out the article on my blog - Display Parent List in SubSite using SharePoint 2010 at

share|improve this answer

I would not recomand putting in a master page (or at least create a WebPart Zone and insert it there) as the pages where your master page would be used is unpredictable in most cases.

You mentioned CQWP which means you are using Publishing Site (right?) so you rather create a Page Layout that embeds a Data-View Web Part which could do the exact same thing (is all about the Data Source) and use that page layout any time you need it.

Additionally if you really want to stick to putting in the master page you could a Delegate control put any control in it (requires a feature for the control).

share|improve this answer
Yes I am using a publishing site but my sysadmin setup out sites so there is 1 site collection with a ton of subsites therefore I get blocked when trying to create layouts. – SystemAccount Jun 12 '12 at 18:40
Is it a matter of permissions then? So you can't get to the list itself? – Marius Constantinescu - MVP Jun 12 '12 at 20:33
No I can get to the list. See my edit above – SystemAccount Jun 12 '12 at 20:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.