Problem with RadFormDecorator? and CDN

3 posts, 0 answers
  1. ChuckRock
    ChuckRock avatar
    38 posts
    Member since:
    Jul 2006

    Posted 11 Jun 2013 Link to this post

    Hi,

     I have successfully linked to the local CDN for the Scripts, but I'm having trouble trying to link to a local CDN for the Skin files. 

    I'm trying to get away from the WebResource.axd and ScriptResource.axd links, because for some of my clients, it gets caught up in their intrusion detection software as bad data, and gets blocked.

    in the Web.Config 
    <add key="Telerik.Skin" value="Office2010Blue" />
     
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
    <add key="Telerik.StyleSheetManager.TelerikCdn.BaseUrl" value="http://www.abc.com/Skins" />
    <add key="Telerik.StyleSheetManager.TelerikCdn.BaseSecureUrl" value="https://www.abc.com/Skins" />
     
    <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
    <add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="http://www.abc.com/Scripts" />
    <add key="Telerik.ScriptManager.TelerikCdn.BaseSecureUrl" value="https://www.abc.com/Scripts" />

    And here is the first part of the Aspx Master File; notice the RadScriptManager and RadFormDecorator
    <%@ Master Language="VB" CodeFile="MasterABC.master.vb" Inherits="MasterABC" %>
    <!DOCTYPE html>
        <head runat="server">
            <asp:ContentPlaceHolder id="head" runat="server">
            </asp:ContentPlaceHolder>
            <title> ABC, Inc. </title>
            <link href="~/Styles/ABC/Site.css" rel="stylesheet" type="text/css"/>
            <script type="text/javascript">
                window.history.forward(1);       
            </script>
            <style type="text/css">
                .RadMenu .rmLink .rmText
                {
                font-family: Arial;
                font-size: 12pt !important;
                }
            </style>
        </head>
        <body id="mainBody" runat="server">
            <script type="text/javascript"> var flag = false;</script>
            <script type="text/javascript">
                var AjaxIsActive = false;
                 
                function RequestSent() {
                    if (!AjaxIsActive) {
                        AjaxIsActive = true;
                    }
                    else {
                        alert('Wait for Page to Load');
                        return false;
                    }
                }
                 
                function ResponseEnd() {
                    AjaxIsActive = false;
                }
            </script>
             
            <form id="form1" runat="server">
                <center>
                    <div>
                        <telerik:RadScriptManager ID="ScriptManager1" runat="server">
                        </telerik:RadScriptManager>
                        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2010Blue" EnableRoundedCorners="true" />
                        <table id="header" runat="server">
                            <tr>
                                <td align="left" style="width:300px">
                                    <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
                                </td>
                                <td valign="bottom" align="right">
                                    <asp:Label ID="FN" runat="server" Font-Size="X-Large"></asp:Label> <br/>
                                    <asp:Label ID="MN" runat="server" Font-Size="X-Large"></asp:Label
                                    <table>
                                        <tr>
                                            <td style="text-align:left">
                                                <telerik:RadMenu ID="Menu1" Skin="Office2010Blue" Runat="server" EnableRoundedCorners="true">
                                                </telerik:RadMenu>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>

    For the Script includes, I get nice Script requests in the raw HTML (Partial example)
    <script src="https://www.abc.com/Scripts/ajaxz/2012.2.912/Common/Core.js" type="text/javascript"></script>
    <script src="https://www.abc.com/Scripts/ajaxz/2012.2.912/FormDecorator/RadFormDecorator.js" type="text/javascript"></script>
    <script src="https://www.abc.com/Scripts/ajaxz/2012.2.912/Common/jQuery.js" type="text/javascript"></script>


    BUT, for some reason, I still get this request still with the <link href="WebResource.axd...; I'm assuming it is the RadFormDecorator call to the skin css and images:
    HTTP/1.1 200 OK
    Cache-Control: private
    Content-Length: 190405
    Content-Type: text/html; charset=utf-8
    Server: Microsoft-IIS/7.0
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    X-UA-Compatible: IE=7
    Date: Wed, 12 Jun 2013 02:27:44 GMT
     
     
    <!DOCTYPE html>
        <head>
        <style type="text/css">
            .style2
            {
            text-decoration: underline;
            font-size: x-large;
            font-family: "Century Gothic";
            }
            .style3
            {
            font-size: x-small;
            }
        </style>
        <style id="head_Style1" type="text/css"> .radupload { float: left; margin-bottom:20px; }
            .bigModule { clear: both; }
            .smallModule { margin-bottom:20px; }
            #controlContainer { vertical-align: top; padding: 20px 10px; }
            .ruProgressArea { position: absolute; top: 0; left: 10px; }
            input.RadUploadSubmit { margin-top: 20px; } </style>
    <title>
         ABC, Inc.
    </title><link href="../Styles/ABC/Site.css" rel="stylesheet" type="text/css" />
            <script type="text/javascript">
                window.history.forward(1);       
            </script>
            <style type="text/css">
                .RadMenu .rmLink .rmText
                {
                font-family: Arial;
                font-size: 12pt !important;
                }
            </style>
        <link href="/WebResource.axd?d=7209tdxJpyfYvktO7sizLvEsOlAAECN6K3FRNE-PHZRYrWNeNFtBXQbsuC66ijzjVL0YeGYekDhirFbodcA8dpuxgxZPT8bwHQHFPZyOQ2iqctHlDW0PZsNDzijuaY-F9SFdS25jptZEXW79Bmhleg2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=oq7JFUamAGDDod2zl0bRxmoJJl3MRXXYu9kGCqiBtsYNl3E2SE-cNLPrh4Z52YMLXfCf6vb6jowUyroohPh9BcVgQsAAgkdFkphvW5mXNHdKHmzeS4ffBCFyHl1muhvxTjqqvj750FHAPhzOWP4p_8LUIeOfUEB2GwzsiGGEDo7yk5A1tAra8OZ37McbfvMZJqpBeNa1eY4zZkAT-bWnkw2&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=yy_i9ieMBzMnZQru3Pdp-zv5fihc_8qUAWmz-JfbtmatlOKdAdpVPAYNUt3O-d6QdSEuR2_ahVoERJg0K9jaDYRAnYSzqZWRV7fcIxOkJzDVE5Qsac_WdE5bw9-deq7jEYIR0qvVMitLCOowjXNTEg2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=VtOfGwNPga3C32XTXimW7I0iuwKw7q6nlUWQzFSZvIkA3nloS3c_wY6se-UcEMduObX2VkCty-gbAvvT_chGRo4JaWsE88soNMM-YUGkYzt1_afGccaeDqGdAmiBvWdDsOvvF33hxOE4iX-mwIeEreQKhCx99kTcpluI-o0ZOIZePR_wuFI7bPQfM_opYTHJ0&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=VcxTCfx6wBSYwXw0sOU10ZoD0BU8xX4nQNF3GOxhH4nyqNQt7WniM-nOhpQoxW9vTYsynZPKzhcTCTZeUme-ha2rHAS-AkT_PjCd1jIWd-53Tq7ZNtOAaI6i_pj0GcVIUx2yBb6eF3k4Tqp4ovTYhA2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=ZMrtlghAh8mu8vLQWv-nO0H8hkPsZQwoKKob-VFVGUB10sHtNv6dGANGwRNh7UaoJdM_QL3rqhAT-P46VJ4SJFRhFScY0IzytWrUB3rGnCMT76L6sIPKFG_xlf_blMjge8cHLiWA7P6K9x24YUMoHL38fQuancEYYsebGUUf7Du_5fKPuUAKqZnrr4pOMTAL0&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=ZJhKpdZwpS108KbGM0H2TZF_EWXJ4ECWG1Em-Y-GDt1JRcBLtb_n2Nkb13OOqzL9ixP_bbA93c6CEug8ADqXsal460faur731RPCxOe64pag9YDtLe1flnIHrE2s1TXU8GvrT6WljonOhkC9MBq11Q2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=6ON68SCi2xXHwqc4l3uDtRUR00KLUtKpyL_08eHIsXtKlSbYpsiMe_fi33NHzkpPSrlSlFoCSH4gM40PHWmJoE6_xmqvfILfF0NpAhPAIq2fKYoqSO6ffH0KkQGDHXuSE5onleMaL_95WcUX0XPAitYQREHLVOg7YCoVIgyaFGwazHIZuC-lCRdnVt6rcQq5vbs4Rl7UKFA7ULhmYqwJ_g2&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=GdWx2IEl9qeAVSBk_wNbtNNfEEr0RDfJhzZbTLHshjF4JMq2C4mKXlIz0U2SD09ysHUnonI6eVFFELGv-AolOh_uMtQoKflJ5dBVi-wNg1X66ES6cZLnUe_3rhQGsvuwtjwQcKNc2vWsf-cEPAVvQQ2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=QfqpEg8bjesXMy-Al9qTqzOqfrDgRid_4ywST7dqgWdhsfB5o1itTDWVLGQVdSmniXGMswew3hXDtq5VwkYPIn76ozSw62N0L6UY2qY3t-kvi3R92WRDVLIcKf_M-BOisSVuQdtZ93YgAwJRkAiwaFt_Jq6_ueopk3mjmGXaMGguF6mUi7gCKJSUkDXp4Cw-0&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=sXVgqmZA3Vi0qJFOU8bZCafGsK-iAaxh4R2-tqOSGWTirEMClpnJj4__rOPTYn_P5iel6KpdYdI6B3cpXFv-XvpJgqbdC8RtGtOGnTY8KyhZCefwANsIULOxvwcmRjSgeOShII4cMgi0U27lUKjLHg2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=s0JUHkkrBHaA8138SQ5FzmmohQq9va8KLWcjWENuWi2H2b0ojbgGxC-LT2OL9XlKiNR3kSFY7A95TAUSaXQcr0utOQJHhD4pLFF7CqwBTBp3opqxAGBXVSOygHtRu04DqteLyX34bwtUwQDYb16nvvw4CZgDKsmedNEnp3CmKCiLHJOqVVKdSzWH2-gUny9K0&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /></head>
        <body id="mainBody" bgcolor="f2dd95" style="background-image: url(/Decoration/2/BG1.png)">

    I've spent quite a bit of time reading the forums, and experimenting, without success. Any ideas or suggestions would be GREATLY appreciated!

    Thanks in advance!

    -Chuck
  2. ChuckRock
    ChuckRock avatar
    38 posts
    Member since:
    Jul 2006

    Posted 11 Jun 2013 Link to this post

    P.S. I forgot to mention, I am running version 2012.2.912.  IIS7 / Windows 2003 Server.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 14 Jun 2013 Link to this post

    Hi Chuck,

    In order to enable the CDN support for the CSS and image files for the skins, an instance of the RadStyleSheetManager must present on your page. More information on enabling the CDN support in RadStyleSheetManager is available in this help article.

    Note also that we highly recommend to always update your version of RadControls to the latest official one (currently this is version 2013.2.611). This blog post will shed more light on how to do that in six easy steps.

    You can also find interesting Q2 2013 release blog.

    Regards,
    Danail Vasilev
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top