How to use Design view to edit a page inside nested Master Pages.

Here’s a quick tip. If you’ve used nested master pages in your ASP.Net web application and you’ve tried to enter the “Design view” in one of your nested aspx pages, you’ve probably seen this error message.

Design view does not support creating or editing nested master pages. To create or edit nested master pages, use Source view.

A simple trick to side step this issue is to clear the MasterPageFile attribute in your aspx file’s page declaration.

So this: MasterPageFile=”~/Example/Example.Master”
Becomes this: MasterPageFile=””

Now you can edit your page using the Design view. Just remember to put the MasterPageFile reference back when you’re ready to test or deploy your site.

One thought on “How to use Design view to edit a page inside nested Master Pages.

  1. I was also facing same problem as”Design view does not support creating or editing nested master pages”.Thank you for your great article …….it was helpful to me……..

Leave a Reply

Your email address will not be published. Required fields are marked *