Hey Paul,

You can use the
System.Web.UI.LiteralControl<http://msdn.microsoft.com/en-us/library/system.web.ui.literalcontrol.aspx>to
include raw HTML into an
ASP.NET page.

To include arbitrary in-line CSS styles into the page, you could
alternatively consider using the ClientScriptManager object on the current
ASP.NET Page or the CssRegistration class in the SharePoint API.

Cheers,
Joe.






On Tue, Oct 11, 2011 at 11:03 AM, Paul Noone <
paul.no...@ceosyd.catholic.edu.au> wrote:

> Hi all,****
>
> Silly question but what is the best method of adding a literal string to a
> deployable web part?****
>
> I want to include some script references and styles before the web part is
> rendered.****
>
> I’ve constructed the string using StringBuilder and had added it as a
> control to CreatedChildControls. This works for most content but my CSS
> styles get converted like so. ****
>
> <style type=”text/css”>CSS Stylesheet</style>****
>
> What’s the best way to add this type of content?****
>
> ** **
>
> Kind regards,
>
> Paul****
>
> ** **
>
> _______________________________________________
> ozmoss mailing list
> ozmoss@ozmoss.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
>
>
_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to