Feb 18, 2008, 5:05 PM
Web.config
Could you post a quick example Web.config that shows where the changes for ScriptManager would go? Thanks.
<?xml version="1.0"?></p>
<configuration>
*** <configSections>
***** <section name="coolite" type="Coolite.Ext.Web.GlobalConfig"/>
*** </configSections></p>
* <!-- COOLITE GLOBAL CONFIGURATION ATTRIBUTES -->
* <!-- cleanResourceUrl = true|false
****** The Coolite controls can clean up the autogenerate WebResource Url so they look presentable.
****** Default is true -->
*
* <!-- gzip = true|false
****** Whether to automatically render scripts with gzip compression.
****** Default is true. -->
*
* <!-- scriptAdapter = Ext, jQuery, Prototype, YUI
****** Which script adapter to use.
****** Default is "Ext" -->
*
* <!-- renderScripts = true|false
****** Whether to have the coolite controls output the required JavaScript includes or not.
****** Gives developer option of manually including required <script> files.
****** Default is true -->
*
* <!-- renderStyles = true|false
****** Whether to have the coolite controls output the required StyleSheet includes or not.
****** Gives developer option of manually including required <link>/<style> files.
****** Default is true -->
*
* <!-- scriptMode = Release, Debug
****** Whether to include the Release (condensed) or Debug (with documentation) JavaScript files
****** Default is "release" -->
*
* <!-- theme = Default, Gray
****** Which embedded theme to use.
****** Default is "Default" --></p>
* <coolite
*** cleanResourceUrl="true"
*** gzip="true"
*** scriptAdapter="Ext"
*** renderScripts="true"
*** renderStyles="true"
*** scriptMode="Release"
*** theme="Gray"
*** /></p>
</configuration>
</p><script runat="server">
*** protected void Page_Load(object sender, EventArgs e)
*** {
******* Coolite.Web.UI.ScriptManager.RegisterSessionTheme(Coolite.Web.UI.Theme.Gray);
*** }
</script>
<script runat="server">
*** protected void Page_Load(object sender, EventArgs e)
*** {
******* HttpContext.Current.Session["Coolite.Theme"] = Coolite.Web.UI.Theme.Gray;
*** }
</script>
</p><?xml version="1.0"?>
<configuration>
<configSections>
<section name="coolite" type="Coolite.Web.UI.GlobalConfig"/>
</configSections>
<!-- COOLITE GLOBAL CONFIGURATION ATTRIBUTES -->
<!-- cleanResourceUrl = true|false
The Coolite controls can clean up the autogenerate WebResource Url so they look presentable.
Default is true -->
<!-- gzip = true|false
Whether to automatically render scripts with gzip compression.
Only works when renderScripts="Embedded" and/or renderStyles="Embedded".
Default is true. -->
<!-- scriptAdapter = Ext, jQuery, Prototype, YUI
Which script adapter to use.
Default is "Ext" -->
<!-- renderScripts = Embedded, File, None
Whether to have the coolite controls output the required JavaScript includes or not.
Gives developer option of manually including required <script> files.
Default is Embedded -->
<!-- renderStyles = Embedded, File, None
Whether to have the coolite controls output the required StyleSheet includes or not.
Gives developer option of manually including required <link> or <style> files.
Default is Embedded -->
<!-- scriptMode = Release, Debug
Whether to include the Release (condensed) or Debug (with imline documentation) Ext JavaScript files.
Default is "Release" -->
<!-- theme = Default, Gray
Which embedded theme to use.
Default is "Default" -->
<coolite
cleanResourceUrl="true"
gzip="true"
scriptAdapter="Ext"
renderScripts="true"
renderStyles="true"
scriptMode="Release"
theme="Gray"
/>
</configuration>
<?xml version="1.0"?>
<configuration>
* <configSections>
*** <section name="coolite" type="Coolite.Ext.Web.GlobalConfig" requirePermission="false" />
* </configSections>
* <!-- COOLITE GLOBAL CONFIGURATION ATTRIBUTES -->
* <!-- cleanResourceUrl = true|false*******
****** The Coolite controls can clean up the autogenerate WebResource Url so they look presentable.*******
****** Default is true -->
*
* <!-- gzip = true|false*******
****** Whether to automatically render scripts with gzip compression.*******
****** Only works when renderScripts="Embedded" and/or renderStyles="Embedded".******
****** Default is true. -->
*
* <!-- scriptAdapter = Ext|jQuery|Prototype|YUI*******
****** Which script adapter to use.*******
****** Default is "Ext" -->
*
* <!-- renderScripts = Embedded|File|None******
****** Whether to have the coolite controls output the required JavaScript includes or not.******
****** Gives developer option of manually including required <script> files.*******
****** Default is Embedded -->
*
* <!-- renderStyles = Embedded|File|None******
****** Whether to have the coolite controls output the required StyleSheet includes or not.******
****** Gives developer option of manually including required <link> or <style> files.******
****** Default is Embedded -->
*
* <!-- scriptMode = Release|Debug*******
****** Whether to include the Release (condensed) or Debug (with inline documentation) Ext JavaScript files.******
****** Default is "Release" -->
*
* <!-- theme = Default|Gray*******
****** Which embedded theme to use.******
****** Default is "Default" -->
*
* <coolite***
***** cleanResourceUrl="true"***
***** gzip="true"***
***** scriptAdapter="Ext"****
***** renderScripts="true"***
***** renderStyles="true"***
***** scriptMode="Release"***
***** theme="Gray"***
***** />
</configuration>
You can switch into Medium Trust mode to test by adding adding the following <trust> node to your web.config, within the <system.web> node.<system.web>
*** <trust level="Medium" />
</system.web>
</p>