This question is locked. New answers and comments are not allowed.
I have my master page in this form:
if i have master page in this way, asynchronous calls doesn't load the styles and scripts.
----------------------------------------------------------------------------------------------------------------------
@using Telerik.Web.Mvc.UI
@using XApps.Net.Web.UI.Extension
<!DOCTYPE html>
<html>
<head>
<title>@ViewBag.Title</title>
@(Html.Telerik().StyleSheetRegistrar()
.DefaultGroup(group => group
.Add("~/Content/Site.css")
.Add("telerik.common.css")
.Add("telerik." + Html.GetCurrentTheme() + ".css")
.Add("telerik.rtl.css")
.Combined(true)
.CacheDurationInDays(7)
.Compress(true))
)
@(Html.Telerik().StyleSheetRegistrar().StyleSheets(styles =>
styles.AddGroup("CommonStyles", group =>
group.Add("~/Content/Site.css")
.Compress(true)
.CacheDurationInDays(7)
.Combined(true)
)));
</head>
<body>
<div>
@RenderBody()
</div>
@{ Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)).Scripts(scripts=>
scripts.AddGroup("CommonScript", group =>
group.Add("~/Scripts/jquery-1.5.1.min.js")
.Add("~/Scripts/jquery-ui.min.js")
.Add("~/Scripts/modernizr-1.7.min.js")
.Add("~/Scripts/add-event.js")
.Add("~/Scripts/popup.js")
.Add("~/Scripts/desktopinteraction.js")
.Add("~/Scripts/cursor.js")
.Add("~/Scripts/Reports/CTDrilldown.js")
.Add("~/Scripts/JSON/json2.js")
.Add("~/Scripts/Encode/jquery.base64.min.js")
.Add("~/Scripts/MicrosoftAjax.js")
.Add("~/Scripts/MicrosoftMvcValidation.js")
.Add("~/Scripts/jquery.validate.min.js")
.Add("~/Scripts/jquery.validate.unobtrusive.min.js")
.Add("~/Scripts/xapps.web.utility.js")
.Add("~/Scripts/grid_search.js")
.Add("~/Scripts/jquery.contextmenu.r2.js")
.Add("~/Scripts/jquery.highlight.js")
.Add("~/Scripts/perfmon.js")
.Add("~/Scripts/telerik.list.min.js")
.Combined(true)
.CacheDurationInDays(7)
.Compress(true)
)).Render(); }
</body>
</html>
-----------------------------------------------------------------------------------------------------------------------------------
if i write in the below way, styles and scripts for the master page gets loaded when i call asynchronously using the call:
.LoadContentFrom
@using Telerik.Web.Mvc.UI
@using XApps.Net.Web.UI.Extension
<!DOCTYPE html>
<html>
<head>
<title>@ViewBag.Title</title>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/add-event.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/popup.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/desktopinteraction.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/cursor.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Reports/CTDrilldown.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/JSON/json2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Encode/jquery.base64.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftMvcValidation.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/xapps.web.utility.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/grid_search.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.contextmenu.r2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.highlight.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/perfmon.js")" type="text/javascript"></script>
<script type="text/javascript">
var startTime = new Date();
</script>
@(Html.Telerik().StyleSheetRegistrar()
.DefaultGroup(group => group
.Add("telerik.common.css")
.Add("telerik." + Html.GetCurrentTheme() + ".css")
.Add("telerik.rtl.css")
.Combined(true)
.Compress(true))
)
</head>
<body>
<div>
@RenderBody()
</div>
@{ Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)).Render(); }
</body>
</html>
whats the problem??? Can you let me know.
if i have master page in this way, asynchronous calls doesn't load the styles and scripts.
----------------------------------------------------------------------------------------------------------------------
@using Telerik.Web.Mvc.UI
@using XApps.Net.Web.UI.Extension
<!DOCTYPE html>
<html>
<head>
<title>@ViewBag.Title</title>
@(Html.Telerik().StyleSheetRegistrar()
.DefaultGroup(group => group
.Add("~/Content/Site.css")
.Add("telerik.common.css")
.Add("telerik." + Html.GetCurrentTheme() + ".css")
.Add("telerik.rtl.css")
.Combined(true)
.CacheDurationInDays(7)
.Compress(true))
)
@(Html.Telerik().StyleSheetRegistrar().StyleSheets(styles =>
styles.AddGroup("CommonStyles", group =>
group.Add("~/Content/Site.css")
.Compress(true)
.CacheDurationInDays(7)
.Combined(true)
)));
</head>
<body>
<div>
@RenderBody()
</div>
@{ Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)).Scripts(scripts=>
scripts.AddGroup("CommonScript", group =>
group.Add("~/Scripts/jquery-1.5.1.min.js")
.Add("~/Scripts/jquery-ui.min.js")
.Add("~/Scripts/modernizr-1.7.min.js")
.Add("~/Scripts/add-event.js")
.Add("~/Scripts/popup.js")
.Add("~/Scripts/desktopinteraction.js")
.Add("~/Scripts/cursor.js")
.Add("~/Scripts/Reports/CTDrilldown.js")
.Add("~/Scripts/JSON/json2.js")
.Add("~/Scripts/Encode/jquery.base64.min.js")
.Add("~/Scripts/MicrosoftAjax.js")
.Add("~/Scripts/MicrosoftMvcValidation.js")
.Add("~/Scripts/jquery.validate.min.js")
.Add("~/Scripts/jquery.validate.unobtrusive.min.js")
.Add("~/Scripts/xapps.web.utility.js")
.Add("~/Scripts/grid_search.js")
.Add("~/Scripts/jquery.contextmenu.r2.js")
.Add("~/Scripts/jquery.highlight.js")
.Add("~/Scripts/perfmon.js")
.Add("~/Scripts/telerik.list.min.js")
.Combined(true)
.CacheDurationInDays(7)
.Compress(true)
)).Render(); }
</body>
</html>
-----------------------------------------------------------------------------------------------------------------------------------
if i write in the below way, styles and scripts for the master page gets loaded when i call asynchronously using the call:
.LoadContentFrom
@using Telerik.Web.Mvc.UI
@using XApps.Net.Web.UI.Extension
<!DOCTYPE html>
<html>
<head>
<title>@ViewBag.Title</title>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/add-event.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/popup.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/desktopinteraction.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/cursor.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Reports/CTDrilldown.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/JSON/json2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Encode/jquery.base64.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftMvcValidation.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/xapps.web.utility.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/grid_search.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.contextmenu.r2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.highlight.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/perfmon.js")" type="text/javascript"></script>
<script type="text/javascript">
var startTime = new Date();
</script>
@(Html.Telerik().StyleSheetRegistrar()
.DefaultGroup(group => group
.Add("telerik.common.css")
.Add("telerik." + Html.GetCurrentTheme() + ".css")
.Add("telerik.rtl.css")
.Combined(true)
.Compress(true))
)
</head>
<body>
<div>
@RenderBody()
</div>
@{ Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)).Render(); }
</body>
</html>
whats the problem??? Can you let me know.