Hi
I'm having exactely the same problem - but still no solution... Too me it
looks like a bug, but I don't hope so...
My old "unanswered question":
-------
Everything about the MasterPages loaded dynamicly, just works fine... BUT
when i try to add the Content "boxes" dynamicly to the .aspx page, I get
problems...
My code:
Dim myContent As Content = New Content()
Page.Page.Controls.Add(myContent)
myContent.ContentPlaceHolderID = "ContentPlaceHolder1"
The error:
Setting the ContentPlaceHolderID property of
System.Web.UI.WebControls.Content is not supported.
Shouldn't this work...? For me it look likes an error in the ASP.NET 2.0..?
---------
"SBerry" <xx*@xxx.net> skrev i en meddelelse
news:%2****************@TK2MSFTNGP09.phx.gbl...
hello,
I would like to create some Content server controls at runtime within
Page_InitComplete code
unfortunately I got exception :(
"Setting the ContentPlaceHolderID property of
System.Web.UI.WebControls.Content is not supported"
what can I do?