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

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

4 Answers 828 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 23 Aug 2013, 10:56 AM
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

4 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 28 Aug 2013, 02:01 PM
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.
0
Brent Hetland
Top achievements
Rank 1
answered on 28 Aug 2013, 02:07 PM
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.
0
Plamen
Telerik team
answered on 29 Aug 2013, 11:50 AM
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.
0
Brent Hetland
Top achievements
Rank 1
answered on 29 Aug 2013, 11:56 AM
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
Tags
General Discussions
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Brent Hetland
Top achievements
Rank 1
Share this question
or