MasterPage setting in web.config - Design Error

G

Guest

I have set the masterPageFile property in my web.config as follows:

<pages masterPageFile="~/Main.master" >

When I create a webform and I don't specify a masterPageFile in the aspx (so
that it uses the web.config specified master) and I go into design view for
the aspx, I get the following error:

Error Creating Control - Content
Content controls can only be used in a content page

Am I setting up the default master page incorrectly in the web.config file?

Thanks for your help
 
S

Steven Cheng[MSFT]

Hi Brian,

For the ASP.NET 2.0 Master page feature, the VS 2005 IDE currently have
limited support in design-time editing. Such setting like global master
page in web.config's <pages> element or Nested Master pages are not
supported in design-time view. We can manually use it in page and it can
work at runtime.

Also, I suggest you submit this request to the MSDN product feedback center
since it should be a reasonable feature to be added in further release or
update.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top