PDA

View Full Version : ContentPlaceHolder prob. On Master Page in C#Net


khawajas
Dec 18, 2008, 04:55 AM
Hi everybody reading this message.

I have Acer Aspire Laptop 3690 n a new commer in web development.
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 occurred
This control can only be used in a MasterPage.


Although this error is not showing on my PC with the same environment.
So guide me to resolve this prob.

Thanks

kjebjo
Mar 10, 2009, 12:19 AM
Hello khawajas: Have you got help on your C# ContentPlaceHolder on Master Page issue? I think that I face the same problem.



Hi everybody reading this msg.

I have Acer Aspire Laptop 3690 n a new commer in web development.
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.


Although this error is not showing on my PC with the same environment.
so guide me to resolve this prob.

Thanks

crigby
Jun 10, 2009, 09:15 AM
Hi,
I am a programmer, but do not use the .Net framework. I have done websites for almost thirteen years, databases for over fifteen (first in xBase with C, now in SQL, most MySQL.)
I do however have a website that links to many of these things, but unfortunately that page is under construction (reconstruction.)
Try this link on MSDN:
ContentPlaceHolder Class (System.Web.UI.WebControls) (http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.contentplaceholder.aspx)
Peace,
Clarke

iammalay
Jan 28, 2012, 12:05 AM
Check out your solution path. There might be '#' sign in your path. Rename folders and remove # signs and check out again.


Regards,
Malay Kothari.
[email protected]

Pravesh Negi
May 1, 2012, 04:23 AM
@Malay Kothari...
Thanks Bro...