MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

how to include customised stylesheets and javascript files  (Mono Support )

Viewed 9183 time(s), 2 post(s) 3/16/2012 5:48:51 PMby mk
mk

mk

3/21/2012 8:12:48 AM
hi,

I have created a new master page. new template and themes. how can i include my custom stylesheets and javascript files in the master page.
This content has not been rated yet. 
120 Reputation 9 Total posts
denis

denis

3/16/2012 9:12:37 PM
You can either add references to your files directly to the markup, or use MonoSoftware.Web.HtmlFormatter.CreateCssLink and JavascriptUtility.RegisterStartupScript, JavaScriptUtility.RegisterClientScriptInclude and similar methods in the codebehind (the static methods in the JavascriptUtility class are wrappers over the standard ASP.NET ScriptManager methods).
This content has not been rated yet. 
7207 Reputation 956 Total posts