Re: Dynamically Adding Raw HTML

Christopher Frazier <[email protected]> Wed, 25 Jul 2007 03:51:39 -0500
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
On 7/25/07, Brady Kelly <[email protected]> wrote:
> How would I go about adding raw HTML to an element on an ASP.NET page or
> control? So, I would e.g. like to have Panel control, and then inject
> generated HTML into it, but I can't do this with a Panel because it has no
> property to set to the HTML.
>
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>

Generally I use an asp:Literal control for such a situation.
PlaceHolder if I were injecting asp:controls.

hth,
--
-Christopher
 | AspInsider
http://www.chrisfrazier.net/blog

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com