This question is locked. New answers and comments are not allowed.
Any idea where we may have gone astray here? The top line works great but the bottom causes an Expression Expected error.
<% Html.Telerik().ScriptRegistrar().OnDocumentReady("alert('hello');")%> <% Html.Telerik().ScriptRegistrar().OnDocumentReady(()=>{%>function(){ alert('hello');}<% })%> Here's the html that's rendered when I remove the bottom line,
<script type="text/javascript"> //<![CDATA[ jQuery(document).ready(function(){ jQuery('#t-ceomenu').tMenu();alert('hello');}); //]]> </script>Here's the error when I put it back - error BC30201: Expression expected.
Here's how the we're loading the scripts in the master page:
<% Html.Telerik().ScriptRegistrar.DefaultGroup(Sub(group) group.Combined(True) _ .Compress(True) _ .CacheDurationInDays(365) End Sub) _ .Scripts(Sub(scripts) scripts.AddGroup("MicrosoftCommon", Sub(group) group.Add("~/Scripts/MicrosoftAjax.js") _ .Add("~/Scripts/MicrosoftMvcAjax.js") _ .Add("~/Scripts/MicrosoftMvcValidation.js") _ .Combined(True) _ .Compress(True) _ .CacheDurationInDays(365) End Sub) End Sub) _ .Render()%>Thanks for any help on this.