Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • organic 108 posts 157 karma points
    Jul 21, 2010 @ 18:57
    organic
    1

    Doc2Form.css html not rendered

    The Doc2Form.css stylesheet is not rendered to the page the macro is on.  Maybe the intention was to just provide the stylesheet for us to pull styles from, but if you want to make it render the provided stylesheet just add this code to the OnInit method in App_Code/Doc2Form.aspx.cs file.

                HtmlLink  css = new HtmlLink();
                css.Href = "/css/Doc2Form.css";
                css.Attributes["rel"] = "stylesheet";
                css.Attributes["type"] = "text/css";
                Page.Header.Controls.Add(css);

  • bob baty-barr 1180 posts 1294 karma points MVP
    Jul 21, 2010 @ 20:10
    bob baty-barr
    0

    I believe the supplied css file was provided as an example and can be easily wired to the page in your standard xhtml markup... or included in your overall site styles doc...

     

    thanks for the helpful tip on including it at runtime via the app_code folder code.

  • organic 108 posts 157 karma points
    Jul 21, 2010 @ 20:17
    organic
    0

    Felt good to provide a tip :-) I've benefitted so much already from Umbraco and the Community. I've been an ASP.NET dev for years and am building my first Umbraco site.  My employer is happy I'm pushing in the CMS direction instead of completely custom sites, one after another.  Wasting time writing CRUD code.  Ugh, never again I hope.  Stand on the shoulders of giants...depending on how tall these Danes are.

Please Sign in or register to post replies

Write your reply to:

Draft