Latest version of Ajax Control toolkit loading 150 .axd files - asp.net

I have installed the latest version of Ajax Control Toolkit, it is loading 150 ScriptResource.axd files approx. which is taking long time to load which in turn is making my website very slow, please suggest how to overcome this issue?

The latest version of Ajax Control toolkit is loading all the scripts by default, you have to code manually so that you can load only the required scripts for the used controls on the page. For Achieving this functionality, you have to create AjaxControlToolkit.config to define the bundles which in turn can be used by the individual pages. Please follow the below links it explains all the functionality that is required by you:
http://stephenwalther.com/archive/2013/07/25/july-2013-release-of-the-ajax-control-toolkit
https://ajaxcontroltoolkit.codeplex.com/SourceControl/latest#SampleWebSites/AjaxControlToolkitSampleSite/AjaxControlToolkit.config

Related

ASP.Net cannot render the page when compilation debug is false

I have an ASP.Net project framework 4.5.2. When I set the compilation debug="true" in web.config, the page is working fine. When I set the debug="false", the page cannot be rendered. It shows special character as below:
Please give me the solution to fix the issue.
My best guess?
When you set debug= false?
That forces the project to use the min (minimized) version of your JavaScript libraries.
For example I modified some of the JavaScript routines in the ajaxtoolkit library. Debug=false never worked or saw my JavaScript changes.
So I installed a JS minimizer package. Now when I modify the JavaScript. I at that point in time also run the minimizer against that js routine and thus when you use debug=false, then your project will now be using the js.min versions of your JavaScript libraries.
Minimization is a huge topic - way way beyond a simple post and answer on SO.
However flipping debug= false does mean your now using the min version of those JavaScript libraries - and thus they must exist - so I would look and check what JavaScript libraries that page uses. You can compile the application as release, but setting debug=false also means JavaScript.min libraries will be used.
So check above in regards to what JavaScript libraries that page uses (and ensure the min versions of those libraries exist before you attempt a publish)
Edit --
Also,try clearing the browser cache - all of it.
For my case, the problem was caused by WebMarkupMin package. The page implements WebMarkupMin's MinifiedAndCompressedHtmlPage class.

nuget bootstrao and jquery package loading

i am loading the bootstrap and jquery packages from nuget:
but i get an error message in chrome console saying that
$ sign is not defined
do i need to referense the jquery lib file, from the aspx page?
if do so, what happen when jquery gets updated, his file name will update too?
In short, yes. You will need to reference the jquery file in every page you use it in. Alternatively, if you are using a _Layout page, you only need to do so once. In terms of the updating issue, your jquery file should not update automatically so you should be fine.
You could also make sure you have jquery migrate installed so that you never have deprecated or code breaking errors in your program. jQuery Migrate
Also consider using jQuery CDN rather than having the files stored locally as this can make updating and upgrading far easier

How to use the ajax toolkit in asp.net?

Hi I have installed the AJAX Toolkit by following this but I don't know how to use the controls of AJAX in ASP.Net. I tried this tutorial but this gave me some errors.
Download from here the latest version of ajax toolkit
http://ajaxcontroltoolkit.codeplex.com/
Inside this zip, you find one more zip file called "AjaxControlToolkitSampleSite.zip", uncompress it and you find all possible examples with source code fully running.

DotNetNuke 5.6 + DNNRadMenu = Terribly Slow Debugging (100% CPU usage in 1 Core for 30 seconds)

When i do the following, I have one CPU core that sits at 100% utilization for about 30 seconds (page does not finish loading until this 30 seconds is up).
Add RadMenu to a skin
Load a page that uses that skin
Confirm that the page loaded OK (DNN recompile went fine...)
Turn on debugging (attach to w3wp.exe in VS2010)
Refresh page
wait 30 seconds...
When I remove the RadMenu from the skin, the thing debugs immediately.
I'm using the DNN download for RadMenu http://dnnradmenu.codeplex.com/
Any tips?
I've tried:
removing most other skin object references in the skin
replicating behavior on multiple pages, multiple skins
Telling VStudio to ignore symbols named: radmenu (I don't know if this catches those items in
the asp.net temp files folder) and the telerik (huge) DLL in dnn/bin
turned off most debugging 'extra' features in VS2010
Set debug=false in the radmenu ascx file
I don't know if there's a new version available. I've got the only version available on that download site.
DNN 5.6.x Community, Radmenu 1.0, VS2010 (latest SP/etc), IIS7, .Net Framework 4.0, Win7 64bit
Have you tried the RadMenu skin object that Telerik provides? With your Telerik components, there should be an additional DNN download which contains a Skin Objects package.
The unfortunate solution to this problem is to disable the DNNRadMenu when debugging in Visual Studio is necessary. I have added two shortcuts on my Desktop. One renames DNNRadMenu.ASCX (to disable), and the other shortcut renames it back (to enable).
The above issue may not be a problem with the Telerik controls made available in non-community versions of DNN.
The above issue only concerns the DNNRadMenu that is made available for community as of 5.6.

How to get a Flex project to load a plugin at runtime?

I'm looking to have a couple of plugins in a Flex project I'm working on. I know I can load a SWF using the SWFLoader, but I thought in Flex3 you can now have Runtime Shared Libraries or something. Does anyone have any good documentation on loading a plugin at runtime? Ideally I'd like to be able to load a plugin from a URL, then execute some code from within the plugin (e.g. add a control to the page).
You can use either Modules or RSL.
RSLs have the advantage of getting cached by flash rather than the browser so they stick around longer.
Modules are easier to create and use. I have used modules and had issues with modules failing to load (code needs to handle that case). I haven't tried RSLs yet.
Here is some documentation on creating RSLs http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:Flex_3_RSLs
Note that, currently, loaded RSLs must be compiled against the very same version of the Flex framework.. if you plan for a "binary" plugin system, probably you want to wait for the Marshall plan feature to be implemented, in the next Flex version.
If you want to try a new and alternative approach, this is a application core framework modelled after java OSGi: http://www.potomacframework.org/
I haven't tried it myself, but it looks really cool!

Resources