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

how to compress telerik.web.ui.webresource.axd

0 Answers 175 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
shanker bangari
Top achievements
Rank 1
shanker bangari asked on 13 May 2010, 01:55 PM
Hi,

this is shanker I am did on project .It's working but very slow in site .telerik.web.ui.webresource.axd file taking more size how to compress this files my project files taking above 1mb how to compress this files please it's very argent  .present my project struggle in perfamance .How to improve my project perfamance am using Rad script manger  am send my config.file and master page file . Rad manger used in master page and in .aspx  am use radproxymanager .please send solutions am wait for any replay please it's very argent . 

this my web config file 


<?xml version="1.0"?>
<configuration>
<configSections>
<!--8-5-2010 for radcomperssion-->
<sectionGroup name="telerik.web.ui">
<section name="radCompression" type="Telerik.Web.UI.RadCompressionConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>
</sectionGroup>
<!--8-5-2010 for radcomperssion-->
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<!--8-5-2010 for radcomperssion-->
<telerik.web.ui>
    <radCompression enablePostbackCompression="true"/>
  </telerik.web.ui>
<!--8-5-2010 for radcomperssion-->
<appSettings>
<add key="Telerik.Skin" value="Web20"/>
<add key="dbtel_person_Images" value="picture_library/dbtel"/>
<add key="school_person_Images" value="picture_library/school"/>
<add key="PersonImageArea" value="100x130"/>
</appSettings>
<connectionStrings>
<add name="demo" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=demo;Persist Security Info=True;User ID=demo_sql;Password=demosqlpswd" providerName="System.Data.SqlClient"/>
<add name="smdc" connectionString="Data Source=SAMA\SQLEXPRESS;Initial Catalog=smdc;Persist Security Info=True;User ID=smdc_sql;Password=smdcsqlpswd" providerName="System.Data.SqlClient"/>
<add name="stpeters" connectionString="Data Source=SAMA3\SQLEXPRESS;Initial Catalog=stpeters;Persist Security Info=True;User ID=stpeters_sql;Password=stpeterssqlpswd" providerName="System.Data.SqlClient"/>
<add name="pinfoConnectionString" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=pinfo;Integrated Security=True" providerName="System.Data.SqlClient"/>
<add name="pinfoConnectionString1" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=pinfo;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
  <location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
<system.web>
<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, 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.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
<add assembly="Telerik.Reporting, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
</assemblies>
</compilation>
<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
<authentication mode="Forms"/>
<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
<customErrors mode="Off"/>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<!--10-5-2010 for radcomperssion-->
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<!--10-5-2010 for radcomperssion-->
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false"/>
<add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*"/>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI,  Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
    </httpHandlers>
<httpModules>
<!--8-5-2010 for radcomperssion-->
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
<!--8-5-2010 for radcomperssion-->
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<!--8-5-2010 for radcomperssion-->
<add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
<!--8-5-2010 for radcomperssion-->
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<!--10-5-2010 for radcomperssion-->
<add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler"/>
<!--10-5-2010 for radcomperssion-->
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
      <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>
  <!--11-5-2010 for radcomperssion-->
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
  <!--11-5-2010 for radcomperssion-->
</configuration>

this my master page 

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Default.master.cs" Inherits="TelerikComponentsWS.Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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 runat="server">
    <title></title>
    <link rel="Stylesheet" href="css/styles.css" type="text/css" />
  

</head>
<body>
    <form id="form1" runat="server">
     <!--11-5-2010 for radcomperssion-->
    <telerik:RadScriptManager ID="scm" runat="server" >
<CdnSettings TelerikCdn="Enabled"></CdnSettings>
    </telerik:RadScriptManager>
     <!--11-5-2010 for radcomperssion-->
    <div style="height: 100%;" id="splitterContainer">
        <telerik:RadAjaxManager ID="radAjMan" runat="server" UpdatePanelsRenderMode="Inline"
            DefaultLoadingPanelID="logPan">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="horMenu">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="leftMenu" />
                        <telerik:AjaxUpdatedControl ControlID="horMenu" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:radformdecorator id="RadFormDecorator2" DecoratedControls="all" runat="server" decorationzoneid="ZoneID2"
            skin="Web20" ControlsToSkip="Select">
        </telerik:radformdecorator>
         <telerik:radformdecorator id="RadFormDecorator1" DecoratedControls="all" runat="server" decorationzoneid="ZoneID3"
            skin="Web20" ControlsToSkip="Select">
        </telerik:radformdecorator>
        <telerik:RadWindowManager ID="radWin" runat="server">
            <Windows>
                <telerik:RadWindow ID="defFacWnd" OffsetElementID='<%#lnk_def_facility.ClientID%>'
                    OpenerElementID='<%#lnk_def_facility.ClientID%>' NavigateUrl="~/User/DefFacility.aspx"
                    OnClientClose="onDefFacClose" runat="server">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <telerik:RadFormDecorator ID="rad_decorator" runat="server" DecoratedControls="all" ControlsToSkip="Select">
        </telerik:RadFormDecorator>
        <telerik:RadSplitter ID="contentSplitter" runat="server" Height="100%" Width="100%"
           VisibleDuringInit="false" OnClientLoaded="initSplitter">
            <telerik:RadPane ID="navigationPane" runat="server" Width="190">
                <div style="margin: 5px;">
                 <br/>
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/img/company_logo.jpg" />
                    
                   
                    <br />
                    <asp:LinkButton ID="lnk_def_facility" runat="server"></asp:LinkButton>
                </div>
                <telerik:RadPanelBar ID="leftMenu" runat="server" Width="180px">
                </telerik:RadPanelBar>
                 <br/>
                 <br/>
                  <br/>
                 
                <div >
                <asp:Button runat="server" ID="btn_logout" Text="Logout" onclick="btn_logout_Click" CausesValidation="false" />  
                </div>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="splitter" runat="server" CollapseMode="Forward" />
            <telerik:RadPane ID="contentPane" runat="server" MinWidth="400">
                <div style="margin: 5px;">
                  <div id="ZoneID4" style="right: auto">
                <fieldset width="100%" style="border-style: none; padding-right: inherit;"  align="right">
                    <asp:Image ID="Image1" runat="server" 
                        ImageUrl="~/img/studentdatasuite_header.PNG" width="100%"/> 
                    </fieldset>
                    </div>
                    <telerik:RadTabStrip ID="horMenu" runat="server" SelectedIndex="0" DataFieldID="module_id">
                        <DataBindings>
                            <telerik:RadTabBinding TextField="module" ValueField="module_id" />
                        </DataBindings>
                    </telerik:RadTabStrip>
                   
                </div>
                <div style="margin: 5px;">
                    <h2>
                        <asp:Literal runat="server" ID="ltTitle"></asp:Literal></h2>
                    <asp:ContentPlaceHolder ID="centerContent" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
                <div id="ZoneID3" style="right: auto">
                <fieldset width="100%" style="border-style: none; padding-right: inherit;"  align="center">
                    <p> © 2009 Sama IT Group. All rights reserved.
<a target="_self" title="Home" href="http://www.samaitgroup.com/">Home</a> 
<a target="_self" title="Products" href="http://www.samaitgroup.com/products.html">Products</a> 
<a target="_self" title="Aboutus" href="http://www.samaitgroup.com/aboutus.html">Aboutus</a>
<a target="_self" title="Support" href="http://www.samaitgroup.com/support.html">Support</a>
<a target="_self" title="Contacts" href="http://www.samaitgroup.com/contactus.html">Contacts</a>
         </p>
                    </fieldset>
                    </div>
                 
            </telerik:RadPane>
        </telerik:RadSplitter>
      
        <telerik:RadAjaxLoadingPanel ID="logPan" runat="server" IsSticky="true" Transparency="30"
            Style="position: absolute; top: 0; left: 0; line-height: 60px; text-align: center;
            z-index: 99;" Width="100%" Height="100%" BackColor="#B9CDF7">
            <asp:Image ID="img" runat="server" Width="130px" Height="60px" ImageUrl="~/img/loading.gif"
                Style="border: 0; margin-top: 70px;"></asp:Image>
        </telerik:RadAjaxLoadingPanel>
     
    </div>

    <script type="text/javascript">
        function onDefFacClose(oWnd) {            //get the transferred arguments
            var arg = oWnd.argument;
            if (arg) {
                var facName = arg.facName;
                $get(oWnd.get_openerElementID()).innerHTML = facName;
            }
        }
        function initSplitter(sender, args)  
        {         
            sender.get_element().style.visibility = 'inherit';  
        }  
 
    </script>

    </form>
</body>
</html>


No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
shanker bangari
Top achievements
Rank 1
Share this question
or