G
Guest
Hi,
using vb.net 1.1
I am trying to add a control to a placeholder but am having problems with it.
I do it practically the same way as i do in C# (I have more C# skill than
VB.NET)and I have asked someone with more VB experience to look at it and
they can't see why it fails.
Any help appreciated...
Dim DocRSSLiteral As New Literal
DocRSSLiteral.Text = "<link href=""" & po.DisplayPath & """
rel=""alternate"" type=""application/rss+xml"" title=""" & po.DisplayName &
""" />"
RSSPlaceHolder.Controls.Add(DocRSSLiteral)
It is failing on the PlaceHolder Controls.Add line.
I can remove all these lines, try and add a label or a hyperlink and they
fail in exactly the same way.
Thanks for your help.
Regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Portal franchises available
using vb.net 1.1
I am trying to add a control to a placeholder but am having problems with it.
I do it practically the same way as i do in C# (I have more C# skill than
VB.NET)and I have asked someone with more VB experience to look at it and
they can't see why it fails.
Any help appreciated...
Dim DocRSSLiteral As New Literal
DocRSSLiteral.Text = "<link href=""" & po.DisplayPath & """
rel=""alternate"" type=""application/rss+xml"" title=""" & po.DisplayName &
""" />"
RSSPlaceHolder.Controls.Add(DocRSSLiteral)
It is failing on the PlaceHolder Controls.Add line.
I can remove all these lines, try and add a label or a hyperlink and they
fail in exactly the same way.
Thanks for your help.
Regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Portal franchises available