I've created a Web Part page in SharePoint designer and added some web parts (a Data View and a Text Filter), but when I preview it or browse to it on the site, the page is blank with no web parts on.

When I edit it in the browser, it's as if no web parts have been added.

Anyone know what I'm doing wrong here?

EDIT: Paste of Code - http://pastebin.com/ZMpeaipJ

  • You added WebPart or WebPart Zone? – Aakash Maurya Apr 28 '16 at 10:38
  • @AakashMorya WebPart, the WebPart Zone was already there – Jamie Brace Apr 28 '16 at 10:41
  • Try by removing the filter webpart. – HarryB Apr 28 '16 at 10:48
  • @HarryB that's not changed anything unfortunately – Jamie Brace Apr 28 '16 at 11:01
  • Can you see those webparts in the page maintenance mode? – Amal Hashim Apr 28 '16 at 11:02

the webparts under the div with class ms-hide which nver shows up, remove the class ms-hide. check th line no 36 in the provided code

  • And below you can find a Style="display:none;" on the webpartzone called loc:TitleBar – Thales Chemenian Apr 28 '16 at 11:46
  • I can't seem to edit that div in SP Designer, the background to the text is yellow and I can't seem to type or delete anything in those areas – Jamie Brace Apr 28 '16 at 13:24
  • Yellow text? Sounds like "advanced mode" is needed! – T0t3sMcG0t3s Apr 29 '16 at 0:31

So it turns out I had actually inserted the code into the wrong part. There are two Zone Templates (one is further down) and I should've inserted the parts in there instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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