Click here to Skip to main content
15,904,934 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
I am facing a problem that whenever I add any Master Page in CSharp.Net Web Application. The following error occurs...

Error Rendering Control - ContentPlaceHolder1
An unhandled exception has occured
This control can only be used in a MasterPage.


please help me what i do with this problem. :sigh:
Posted

check out your solution path. There might be '#' sign in your path. Rename folders and remove # signs and check out again.


Regards,
Malay Kothari.
iammalay@yahoo.com
 
Share this answer
 
Comments
klaydze 17-Jan-13 3:26am    
This is the best answer for this problem. I have this kind of problem and after following the instruction, boom! work like a charm. :)
Looks like you are placing your contentplaceholder panel outside the master panel.

Move the contentplaceholder into the master page panel and try.
 
Share this answer
 
Be sure that you select check box use Master page and select the corresponding Master to each pages you add.And checkout that you didn't place any content place holders in any other page(ie which doesn't ingerit a Master page.
Happy Programming;-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900