0

Page has one or more <asp:Content> controls that do not correspond with <asp:ContentPlaceHolder> controls in the Master Page

by volkanuzun 19. February 2009 10:32

Today was a usual day for me, came to office, grabbed my tea, ran Visual Studio 2008, open the project i was working on, checked out latest edition, and compiled. Nothing special until i started modifying the master page in the project. I added some script tags to include JavaScript files, and a new css link, then i opened one of the aspx page, and got the error: "Page has one or more controls that do not correspond with controls in the Master Page". The master page was correct, the child pages were correct, but then where was the problem? Immediately i googled this error, after seeing so many suggestions (Google results are slowly becoming junk unfortunately), i figured out that this is a bug with Visual Studio. Solution is very simple :) however i still don't know what kind of bug could be in the program to cause this? Basically change the:

<link  ..=".." />, <title... />, <script... />tags into <link...></link>, <title...></title>, <script...></script>
and the project will work again. Have fun

Tags:

Comments are closed

Powered by BlogEngine.NET 1.6.0.0
Original Design by Laptop Geek, Adapted by onesoft