I was wondering how to use the mentionaed library function. I took it out of a xslt filem exchanged the colon for a dot but the script won't save.
Error occured
error CS1502: The best overloaded method match for
'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)'
has some invalid arguments
Not really saying much about the real error. The code looks like this:
I figured it out. It's a known bug where you need to have a form with runat="server" on the page befor it loads the scriptblock. But even when i put a form on the page to test it didn't work right. I guess i'll have to wait for the bugfix.
If you're dynamically registering JavaScript files (or CSS files) you need to have a runat="server" on your head element otherwise you're likely to hit problems.
Using "umbraco.library.RegisterStyleSheetFile"
Hi all
I was wondering how to use the mentionaed library function. I took it out of a xslt filem exchanged the colon for a dot but the script won't save.
Error occured
error CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments
Not really saying much about the real error. The code looks like this:
You have to put this code in a code block like so:
Hi Sebastiaan
That worked perfectly, so i thought i'd do the same for umbraco.library.RegisterClientScriptBlock.
The first two lines get registered fine, but not the scriptblock.
I figured it out. It's a known bug where you need to have a form with runat="server" on the page befor it loads the scriptblock. But even when i put a form on the page to test it didn't work right. I guess i'll have to wait for the bugfix.
/Allan
If you're dynamically registering JavaScript files (or CSS files) you need to have a runat="server" on your head element otherwise you're likely to hit problems.
is working on a reply...