• English (United States)
    • العربية (مصر)
    • Deutsch (Deutschland)
    • Español (España, alfabetización internacional)
    • français (France)
    • हिंदी (भारत)
    • italiano (Italia)
    • 日本語 (日本)
    • 한국어 (대한민국)
    • Nederlands (Nederland)
    • polski (Polska)
    • русский (Россия)
    • ไทย (ไทย)
    • Türkçe (Türkiye)
    • Tiếng Việt (Việt Nam)
    • 中文(中华人民共和国)
    • 中文(香港特別行政區)

DNA jQuery Web Controls for ASP.NET

Hide sidebar

CompositeScripts In DJ


Today i adding the compositscript feature of ScriptManager to DJ.Before i add this feature to DJ i do some test.I using FireBug to watch the response from the server first

Result:



I run in VS.NET's debug mode and found this

[image||{UP}images/scriptCombine.gif]

ScriptManager combine the script reference files in one,so the script reference count from 3 lower to 1. if using a large number of DJ web controls this feature will be get the high performance.

so when you build your jQuery Web Control using DNA.UI you can use ScriptBuilder.AddCompositeScript to add your script reference because this method will check if the script is already reference or not.Because if you using ScriptManager.CompositeScript do not allow add script reference more than once.


ClientScriptManager.AddCompositeScript("jQuery.ui.core.js","jQuery");

 


    Average:
  • Reads
    (1208)
  • Permalink
Share to:
Valid XHTML 1.0!