Telerik.Web.UI.InsecureExternalStyleSheetException: The style sheet '~/Scripts/app.js' is not located in any of the 'Style Sheet' folders designated in the web.config. Telerik.Web.UI.InsecureExternalStyleSheetException: Telerik.Web.UI.InsecureExternalStyleSheetException: The style sheet '~/Scripts/app.js' is not located in any of the 'Style Sheet' folders designated in the web.config. at Telerik.Web.UI.ExternalScriptHelper.ResolveSecurePath(String scriptRelativePath)
<add key="Telerik.Web.UI.StyleSheetFolders" value="~/Scripts/; ~/styles/; ~/ReportViewer/js/; ~/kendo/js/;" />
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<telerik:RadScriptReference Path="~/Scripts/app.js" />
</Scripts>
</telerik:RadScriptManager>
<telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1">
<StyleSheets>
<telerik:StyleSheetReference Path="~/Scripts/app.js" />
</StyleSheets>
</telerik:RadStyleSheetManager>
Hi Team,
I tried following steps to use RadMultiSelect dropdown in my project but getting compile time error .
1) I have registered Telerik.Web.UI assembly in aspx page
2) Added RadScriptManager and RadSkinManager on aspx page.
3) then added following code -
requiredMultiSelect.Value = {"Anne King", "Andrew Fuller"}
And getting compile time error -
I am trying to disable embeddedscripts for radgrid - everything works but context menu - which scripts altogether do I need to add?
This write up (linked below) is incorrect or out of date - can someone please help.
https://docs.telerik.com/devtools/aspnet-ajax/getting-started/performance/disabling-embedded-resources#disabling-embedded-resources
Hello,
I have a problem with RadScriptManager
I have an exisiting ASP.Net Web Forms web application.
There is Default.aspx and used Main.Master master page
I did the necessary to integrate Telerik UI Web correctly.
In the master page there is <asp:ScriptManager ID="ScriptManager...
and in the Default.aspx I added <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
and <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
and <telerik:RadWindowManager RenderMode="Lightweight"....
and <button onclick="openReqForm(); return false;">hello</button>
in code behind:
string fctOpenReqForm = "<script type=\"text/javascript\">function openWin {var oWnd = radopen(\"Request.aspx\", \"RadWindow1\"); } </script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "openReqForm", fctOpenReqForm);
When I execute I have an error message: "Only one instance of script manager can be added to the page...
I need to add a Telerik button and other telerik things to the page and use javascript methods...
Any help? thanks
Hi,
I have been throught a lot of trouble making work telerik controls with a proxy. I'm using asp.net webform on IIS with .net 4.5 and Telerik 2020.3.1021.45
I recently added a reverse proxy (ARR) to IIS to make my website work with the blue/green pattern to get a 0 downtime deployment. So I get a webfarm that redirect to the live website with the reverseproxy. Every things work great except telerik controls.
I get many javascript exception that make me think that the telerik webressource doesnt seems to get through the proxy :
I tried to change many stuff but without sucess :
change webfarm caching in IIS to "Include query string"
I don't know what to check next. Thank you for your advices/ideas...
JF
I have a master page with the following code:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="True" EnableCdn="True" EnablePartialRendering="True">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
My SignalR Javascript code:
<!--Script references. -->
<!--Reference the jQuery library. -->
<script src="Scripts/jquery-3.6.0.min.js"></script>
<!--Reference the SignalR library. -->
<script src="Scripts/jquery.signalR-2.4.3.min.js"></script>
<!--Reference the autogenerated SignalR hub script. -->
<script src="signalr/hubs"></script><telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
$(function () {
// Declare a proxy to reference the hub.
// Error Line
var hub = $.connection.progressHub;
// Create a function that the hub can call to report progress.
hub.client.receiveMessge = function (Item) {
$('#<%=lblCurrRec.ClientID%>').html(Item.SITE_CODE);
$('#<%=lblStat.ClientID%>').html(Item.STATUS);
$('#<%=lblRes.ClientID%>').html(Item.MESSAGE);
};
hub.client.UpdateTotal = function (iTotal, iSent, iNotSent) {
$('#<%=lblTotal.ClientID%>').html(iTotal);
$('#<%=lblRecsProc.ClientID%>').html(iSent);
$('#<%=lblErrorRecs.ClientID%>').html(iNotSent);
};
$.connection.hub.start();
});
</script>
</telerik:RadScriptBlock>
When I run the code I get the following error:
Cannot read properties of undefined (reading 'progressHub')
If I put all this in it's own test page and replace the RadScriptManager with the following it works flawlessly:
<asp:ScriptManager ID="MainScriptManager" runat="server" EnablePartialRendering="true" EnablePageMethods="true" AsyncPostBackTimeout="600" />
Hi There,
I have been reviewing quite a few forum posts and trying different suggestions, but I haven't found a solution that works for my situation. Help would be greatly appreciated. It's probably something simple that I'm missing.
I have a page that includes RadScriptManager, RadAjaxManager, RadSplitter, RadPane (with regular local content), RadSplitBar, and RadPane2 (contains other aspx pages like an iframe).
When RadPane2 contains another page, even if it's not an AJAX page, JavaScript calls to the RadAjaxManager from the primary page only fire the first time. I'm trying to call a method on the code behind page to update an item in a RadMenu.
If I have all the content is on one page without referring to a separate page, I can make multiple calls to the RadAjaxManager without problems.
Pieces of the code:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rmCounts"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server" >
<script type="text/javascript" language="JavaScript">
function countUpdate() {
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest("updateCounts");
return false; }
</script>
</telerik:RadCodeBlock>
Example code behind method:
public void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
updateCountsCodeBehind();
}
Thanks,
Dan
Hi, I have a RadWindow which appears when the button is clicked.
The code in aspx is:
<telerik:RadWindow ID="rwSubmitForReview" Title="Submit For Review" runat="server" Localization-PinOff="Pin off" Width="305px" Height="250px" InitialBehaviors="Pin" >
Code in aspx.cs is
string script = "function f(){$find(\"" + rwSubmitForReview.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
ScriptManager.RegisterStartupScript(this, this.GetType(), "key", script, true);
When i start to scroll down in the main page, the window disappears and i notice the top attribute follows the scroll? Please refer to the red highlighted line. How can I make it stop scrolling?
The telerik version is 2022.1.119.40.
I'm getting this error whenever I click a button on the page.
This only happens when you're running the aspx page through a windows forms application that has a browser control.
If I load this page directly from any normal browser it works fine.
Page is running:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
Any suggestions?
<%
@ Master Language="VB" CodeFile="TemplateDialog.Master.vb" Inherits="Master_TemplateDialog" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>ISMP - CRM System </title>
<script type="text/javascript" src="../Scripts/Calendar.js"></script>
<script type="text/javascript" src="../Scripts/CalendarSetup.js"></script>
<script type="text/javascript" src="../Scripts/CalendarEnglish.js"></script>
<script type="text/javascript" src="../Scripts/Functions.js"></script>
<script type="text/javascript" src="../Scripts/QueryString.js"></script>
</head>
<body style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
<form id="form1" runat="server">
<telerik:RadScriptManager ID="ScriptManager" runat="server"></telerik:RadScriptManager>
<uc5:HelpControl ID="HlpControl" runat="server" />
<asp:contentplaceholder id="PageContent" runat="server">
</asp:contentplaceholder>
<telerik:RadProgressManager id="RadProgressManager1" runat="server" />
<telerik:RadWindowManager id="MasterWindowMgr" runat="server" Behavior="Close,Move" VisibleStatusbar="false" ReloadOnShow="True">
<Windows>
<telerik:RadWindow ID="DialogWindow" runat="server" Left="" NavigateUrl="" Skin="Windows7" Title="" Top=""></telerik:RadWindow>
<telerik:RadWindow OnClientClose="OnRadModalClose" ID="DialogWindowModal" runat="server" Modal="true" Left="" NavigateUrl="" Skin="Windows7" Title="" Top=""></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />
</form>
</body>
</html>
Here is the web.config file.
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="MilesLibrary.TemplateNamespace" value="Template"/>
<add key="MilesLibrary.EventSource" value="Template"/>
<add key="MilesLibrary.AutoLog" value="true"/>
<add key="MilesLibrary.CustomerDocumentFolder" value="xxxxxx" />
<add key="UploadNewsletterfolder" value="xxxx"/>
<add key="UploadNewsletteraddress" value="xxxxx"/>
<add key="MilesLibrary.CustomerDocumentWebFolder" value="xxxxx"/>
<add key="EmailAttachments" value="xxxx"/>
<add key="CustomerEmailAttachments" value="xxxx"/>
<add key="ReportFolder" value="xxx"/>
<add key="PaymentStatusNA" value="2"/>
<add key="StandardLogoID" value="3"/>
<add key="ReportFolderLink" value="xxxx"/>
<add key="ReportingService.reportservice" value="xxxx"/>
<add key="UploadLogofolder" value="xxxx"/>
<add key="UploadLogoaddress" value="xxxx"/>
</appSettings>
<connectionStrings>
<add name="MilesLibrary.ConnectionString" connectionString="server=xxxxxxxx;uid=xxxxx;pwd=xxxxxx;database=xxx;Max Pool Size=20;Min Pool Size=1;Connection Timeout=300;"/>
</connectionStrings>
<system.web>
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Data"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="cc1" assembly="ISMPControls" namespace="ISMPControls"/>
<add tagPrefix="radG" assembly="RadGrid.Net2" namespace="Telerik.WebControls"/>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
<add tagPrefix="uc1" tagName="Phone" src="~/UserControls/Phone.ascx"/>
<add tagPrefix="uc2" tagName="StatesDropDown" src="~/UserControls/StatesDropDown.ascx"/>
<add tagPrefix="uc3" tagName="Tab" src="~/UserControls/Tab.ascx"/>
<add tagPrefix="uc4" tagName="DateTimeControl" src="~/UserControls/DateTimeControl.ascx"/>
<add tagPrefix="uc5" tagName="HelpControl" src="~/UserControls/HelpControl.ascx"/>
<add tagPrefix="uclb" tagName="ListBoxControl" src="~/UserControls/ListBoxControl.ascx"/>
</controls>
</pages>
<authentication mode="Forms">
<forms name=".Template" loginUrl="~/security/login.aspx" protection="None" timeout="1800" path="/"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="1800"/> -->
<customErrors mode="Off"/>
<httpRuntime maxRequestLength="2097151"/>
<httpHandlers>
<add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
<add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
<add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
<add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<remove verb="*" path="*.asmx"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
<location path="Images">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Telerik.Web.UI.WebResource.axd">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>