MasterPageFile in web.config - Page Designer Errors

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
 

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

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top