INTRODUCTION
So my client is running SharePoint which unfortunately the main master page has been modified using SharePoint Designer; therefore it causes the master page to be “un-ghosted”. Any updates made to the original master page located in the source control (TFS) no longer affects the stored master page due to this disconnection.
Therefore, I had to copy/paste the customisation from the modified master page in the Master Page Catalog back to the one in source control. Then I removed all SharePoint Designer references (often denoted by the double underlines “__”). You will easily spot them.
After that I re-ghost the master page and it now starts using the source control version again.
It’s all good until I realise that the IsDlg parameter no longer works properly. The IsDlg parameter is injected when you open a list item or anything that involves modal window. The idea is, when IsDlg is set to 1 ie. IsDlg=1, the ribbon and left-navigation would be hidden. Pretty much, any HTML elements denoted by <div class=”s4-notdlg”> will be hidden.
RESOLUTION
The problem is, when you copy/paste the master page that has been modified by SharePoint Designer, the <html> element does not contain runat=”server”. This is required for IsDlg to work properly.
Therefore, all you need to do is to ensure that at the beginning of your master page, the runat=”server” attribute is set on your <html> tag such as:
<html runat="server">
...
</html>
Hope this helps,
Tommy
We provides you the best Services in our themes.
Click on the link below to see a full list of clients which we have developed solutions and provided consultancy for.
We are solution-centered and not application-centered.
Being creative and having fun and yet still delivering a fantastic service is the center of our values.
TFS Consulting Services guarantees delivery that is within budget and deadline or you engage us for free.
Implementing IT solution does not have to be difficult. TFS Consulting Services has a lot of resources on planning and methodologies that will ensure successful delivery of your IT solution. TFS Consulting Services has been around in the web industry for more than 10 years and has experienced all the successes and failures of various type of IT deployment.
Do you need a technical resource? TFS Consulting Services can also provide you with technical resource for developing ASP.NET (C# and VB.NET), SharePoint (2003, 2007, 2010, 2013) and MS CRM applications. Our resource is an Microsoft Certified Personnel (MVP) and Microsoft Certified Technology Specialist (MCTS) in all ASP.NET, SharePoint and CRM.
Make sure your IT implementation is robust and scalable. TFS Consulting Services can provide consulting and advice on industry’s best practice on various web-related areas such as website security, design and usability, application-specific (such as SharePoint)’s best practice, Search Engine Optimisation (SEO), coding standards and many others.
Finally TFS Consulting Services provides you with solution development service. We mainly work with Microsoft technologies (ie. .NET and SQL Server), however we are also capable of developing with PHP and MySQL. If you ever need any business process automation, integration and solution development work, we are the trusted expert you should go to.
For more detailed service offerings please visit our Solutions page.
Tommy Segoro
tommy@tfsconsulting.com.au
+61 404 457 754
© TFS Consulting Services 2025. All rights reserved.