This question is locked. New answers and comments are not allowed.
Dear Teleriks ,
I have the following codes :
at <head> :
and at the bottom of the page :
but I got javascript error because of these two lines :
if I remove these two lines and add the following lines at the top of the page everything would be ok ;
I want to know why I can't add these two files to web asset?
P.S. The errors depend on the page content but a sample is:
I have the following codes :
at <head> :
@( Html.Telerik() .ScriptRegistrar() .DefaultGroup(o => o.Enabled(false)) .Scripts(scripts => { scripts.AddGroup("HeaderScript", group => group .Add("~/Scripts/jquery-1.5.1.min.js") .Add("~/Scripts/MicrosoftAjax.js") .Add(...) .Combined(true) .Compress(true)); }))
and at the bottom of the page :
@(Html.Telerik() .ScriptRegistrar() .jQuery(false) .jQueryValidation(false) .Globalization(true) .DefaultGroup(group => group .Add("2011.2.725/telerik.window.js") .Add("2011.2.725/telerik.draganddrop.min.js") .Enabled(true) .Combined(true) .Compress(true)) )
but I got javascript error because of these two lines :
.Add("~/Scripts/jquery-1.5.1.min.js") .Add("~/Scripts/MicrosoftAjax.js")
if I remove these two lines and add the following lines at the top of the page everything would be ok ;
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
I want to know why I can't add these two files to web asset?
P.S. The errors depend on the page content but a sample is: