This is a migrated thread and some comments may be shown as answers.

Web Asset Manager question

2 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gary Davis
Top achievements
Rank 2
Gary Davis asked on 01 Mar 2011, 11:06 PM
I am using the Telerik CDN and set in Globla.asax.cs:

WebAssetDefaultSettings.UseTelerikContentDeliveryNetwork = true;

The master page has this at the end:

  

<%= Html.Telerik().ScriptRegistrar().jQuery(false)); %> 

 

 

 


This works but it shouldn't require the semicolon. If I use <%: instead of <%=, it needs an extra closing parenthesis.

Am I doing something wrong?

Thanks,
Gary Davis

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 02 Mar 2011, 08:39 AM
Hello Gary,

 
I believe that this is the correct syntax:
 

<%= Html.Telerik().ScriptRegistrar().jQuery(false) %>
I could not reproduce depicted issue on my end.

If the problem still persists I will suggest you send us a simple test project which reproduces this problem.

Regards,
Georgi Krustev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Gary Davis
Top achievements
Rank 2
answered on 02 Mar 2011, 03:38 PM
Thanks for verifying my usage.

The error I was getting at execution time was this compile error:

  Home.Master(39): error CS1026: ) expected

With line #39 being the Html.Telerik() statement.

It turned out I had a comment and that caused the problem which was not obvious from the error message. I did not include the comment in my original posting above so you were not able to reproduce the problem. This causes the error:

<%= Html.Telerik().ScriptRegistrar().jQuery(false) // comment %>

If I use /* comment */, that will work, but not //.

Thanks
Gary
Tags
General Discussions
Asked by
Gary Davis
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Gary Davis
Top achievements
Rank 2
Share this question
or