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

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,274
Latest member
JessMcMast

Latest Threads

Top