Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you are willing to work with code in active development (that is... beta :), I have a project that is nearly ready for prime time that deals with this, as well as a lot of other things related to client scripting in asp.net UserControls and server controls (e.g., naming container issues, asp.net event interaction, and so on). The basic use is pretty simple, e.g. you can probably figure out what this does. This would be dropped into a UserControl, but all the same can be effected from code (e.g. for a server control).</p> <pre><code>&lt;JTC:ScriptContext runat="server" ID="ControlScriptContext" StartupType="Jquery"&gt; &lt;Scripts&gt; &lt;JTC:ScriptReference Name="jquery" /&gt; &lt;JTC:ScriptReference Name="jqplot" /&gt; &lt;JTC:JavascriptInclude Path="~/scripts/Decorator.js" /&gt; &lt;JTC:ScriptFunction Function="controlStartup" Execution="Startup" /&gt; &lt;JTC:ScriptFunction Function="pieStartup" Execution="AsyncPostBegin" /&gt; &lt;/Scripts&gt; &lt;ServerReferences&gt; &lt;JTC:ObjectReference ControlID="ModalPopup" /&gt; &lt;JTC:PropertyReference PropertyName="PieChartData" /&gt; &lt;/ServerReferences&gt; &lt;/JTC:ScriptContext&gt; </code></pre> <p><code>ScriptReferences</code> are established globally using a construct identical to Microsoft's <code>ScriptManager.ScriptResourceMapping</code> and supports cdn, as well as css and one-to-many references to scripts, unlike the MS version. It also provides methods to simplify using embedded resources so you can create truly self-contained server controls.</p> <p>The project page &amp; source is <a href="http://www.outsharked.com/csm/" rel="nofollow">here</a> and I would welcome any input or involvement from people interested in it. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload