Is there a way I can force the loading of WebResource.axd and ScriptResource.axd files?

5 posts, 0 answers
  1. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 23 Aug 2013 Link to this post

    Hi,

    I am using version 2012.3.1016 (3.5 Framework) of your ASP.NET for AJAX controls.

    My basic question is:  Can I force various resource files to load (WebResource.axd and ScriptResource.axd files)?

    The reason why I might want to do this is that I'm experimenting with a free project I got from codeplex that handles the asynchronous loading of ascx controls.  I'm creating a dashboard and I want long running controls to execute after the page loads, and that is what this free project does.

    The problem with the free project is:  It is not loading the necessary WebResource.axd and ScriptResource.axd files for the Telerik controls I'm using, so I don't have the needed css and javascript for the controls to work.

    I've added link tags to the missing /WebResource.axd?'s and that has made the css available, but I don't know if that is a recommended way of loading these resource files.  Is it?

    I've also added script tags like the following, to try to force the javascript to load, but I get javascript errors when the page load, so it isn't working for loading my missing javascript:

    <script type="text/javascript" src="/ScriptResource.axd?d=tcuWcqcL5-luLV0wdxLefWCe_aCO56Eh319X6XgtpN2Gtje1MWdgfFfS75k6jswRmNUwWHyiB0uS2ChbFj-BOhVThUoNcyHxhBmYBZ2FX80bd4fNkNBHR8b3D24AhsvzwUlylOd5zfKeaX8EZ1dwg9TXJtU1&t=ffffffff967a6818"></script>
    

    So again, in an ascx file, is there a way to force the loading of the CSS and javascript that Telerik controls will need?  Either from within the resource files, or any other way?  Of course I don't want to have to extract the css and javascript from the resource files and create my own files.  That would probably be hard to maintain when upgrading the Telerik components...

    Thanks Much,
    Brent
  2. Plamen
    Admin
    Plamen avatar
    3008 posts

    Posted 28 Aug 2013 Link to this post

    Hello Brent,

     
    As far as I can understand you are trying to combine the external scripts that you are using with RadControls. You can refer to this help topic where is explained how such functionality can be achieved with RadScriptManager.

    Hope this will be helpful.

    Regards,
    Plamen
    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.
  3. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 28 Aug 2013 Link to this post

    Hi Plamen.  No this is not correct.  I'm not trying to combine the scripts.

    I'm trying to force the loading of the scripts manually, from the axd file.

    Can I do that?  Or maybe it would be more wise, to find the actual js script files, and link to them (for my specific scenario), now that I think about it.
  4. Plamen
    Admin
    Plamen avatar
    3008 posts

    Posted 29 Aug 2013 Link to this post

    Hi Brent,

     
    Unfortunately the described scenario is not supported with RadScriptManager and I am not aware of a possible workaround how to achieve it.

    Regards,
    Plamen
    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.
  5. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 29 Aug 2013 Link to this post

    Hi Plamen,

    I'm not trying to do it by using the RadScriptManager.  Unfortunately I don't think you understood what I was asking.

    Anyway, after realizing that you ship all of the .js files for each control, I realize now that I can probably just link them into my page and not try to load them from the resource files.

    Thanks for your effort.
    Brent
Back to Top