﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Coolite Forums / Coolite Toolkit / Help  / Web.config / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Coolite Forums</description><link>http://www.coolite.com/forums/</link><webMaster>do-not-reply@coolite.com</webMaster><lastBuildDate>Sat, 31 Jul 2010 20:52:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>Hi jachnicky,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It's probably best to start a new thread since your question is a new topic. thx.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Tue, 09 Dec 2008 06:28:18 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>hi,geoffrey&lt;BR&gt;&lt;BR&gt;    How to change the custom theme by Ajax methods or Ajax events?</description><pubDate>Mon, 08 Dec 2008 21:46:32 GMT</pubDate><dc:creator>jachnicky</dc:creator></item><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>As of &lt;a href="http://www.coolite.com/download/"&gt;version 0.4.1&lt;/a&gt;, we've added several other options for setting each of these global config properties. The following forum post details each of the four methods. &lt;br&gt;&lt;br&gt;&lt;a href="http://www.coolite.com/forums/FindPost177.aspx"&gt;http://www.coolite.com/forums/FindPost177.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;As well, a new global config property called &lt;b&gt;ResourcePath&lt;/b&gt; was added. More information available within the following forum post.&lt;br&gt;&lt;br&gt;&lt;a href="http://www.coolite.com/forums/FindPost178.aspx"&gt;http://www.coolite.com/forums/FindPost178.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;</description><pubDate>Fri, 28 Mar 2008 11:06:43 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>&lt;p&gt;We found a couple problems when running the Assembly in Medium Trust mode. One was fixed in code and will be available with the next release. The other requires a simple edit to the web.config. &lt;br&gt;&lt;br&gt;The &lt;code&gt;requirePermission="false"&lt;/code&gt; attribute must be applied to the coolite configuration section.&lt;br&gt;&lt;br&gt;Here's the full revised web.config sample.&lt;br&gt;&lt;br&gt;[code]&amp;lt;?xml version="1.0"?&gt;&lt;br&gt;&amp;lt;configuration&gt;&lt;br&gt;  &amp;lt;configSections&gt;&lt;br&gt;    &amp;lt;section name="coolite" type="Coolite.Ext.Web.GlobalConfig" requirePermission="false" /&gt;&lt;br&gt;  &amp;lt;/configSections&gt;&lt;br&gt;  &amp;lt;!-- COOLITE GLOBAL CONFIGURATION ATTRIBUTES --&gt;&lt;br&gt;  &amp;lt;!-- cleanResourceUrl = true|false        &lt;br&gt;       The Coolite controls can clean up the autogenerate WebResource Url so they look presentable.        &lt;br&gt;       Default is true --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- gzip = true|false        &lt;br&gt;       Whether to automatically render scripts with gzip compression.        &lt;br&gt;       Only works when renderScripts="Embedded" and/or renderStyles="Embedded".       &lt;br&gt;       Default is true. --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- scriptAdapter = Ext|jQuery|Prototype|YUI        &lt;br&gt;       Which script adapter to use.        &lt;br&gt;       Default is "Ext" --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- renderScripts = Embedded|File|None       &lt;br&gt;       Whether to have the coolite controls output the required JavaScript includes or not.       &lt;br&gt;       Gives developer option of manually including required &amp;lt;script&gt; files.        &lt;br&gt;       Default is Embedded --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- renderStyles = Embedded|File|None       &lt;br&gt;       Whether to have the coolite controls output the required StyleSheet includes or not.       &lt;br&gt;       Gives developer option of manually including required &amp;lt;link&gt; or &amp;lt;style&gt; files.       &lt;br&gt;       Default is Embedded --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- scriptMode = Release|Debug        &lt;br&gt;       Whether to include the Release (condensed) or Debug (with inline documentation) Ext JavaScript files.       &lt;br&gt;       Default is "Release" --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- theme = Default|Gray        &lt;br&gt;       Which embedded theme to use.       &lt;br&gt;       Default is "Default" --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;coolite    &lt;br&gt;      cleanResourceUrl="true"    &lt;br&gt;      gzip="true"    &lt;br&gt;      scriptAdapter="Ext"     &lt;br&gt;      renderScripts="true"    &lt;br&gt;      renderStyles="true"    &lt;br&gt;      scriptMode="Release"    &lt;br&gt;      theme="Gray"    &lt;br&gt;      /&gt;&lt;br&gt;&amp;lt;/configuration&gt;[/code]&lt;br&gt;&lt;br&gt;You can switch into Medium Trust mode to test by adding adding the following &amp;lt;trust&gt; node to your web.config, within the &amp;lt;system.web&gt; node.&lt;br&gt;&lt;br&gt;[code]&amp;lt;system.web&gt;&lt;br&gt;    &amp;lt;trust level="Medium" /&gt;&lt;br&gt;&amp;lt;/system.web&gt;&lt;br&gt;[/code]&lt;br&gt;&lt;/p&gt;</description><pubDate>Sat, 23 Feb 2008 19:40:02 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>Right you are regarding the renderScripts and renderStyles properties. That was my mistake. Both take a ResourceLocationType Enum value with possible options being Embedded, File or None.&lt;P&gt;Here's the updated Web.config sample.&lt;BR&gt;[code]&amp;lt;?xml version="1.0"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;BR&gt;    &amp;lt;configSections&amp;gt;&lt;BR&gt;      &amp;lt;section name="coolite" type="Coolite.Web.UI.GlobalConfig"/&amp;gt;&lt;BR&gt;    &amp;lt;/configSections&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;!-- COOLITE GLOBAL CONFIGURATION ATTRIBUTES --&amp;gt;&lt;BR&gt;  &amp;lt;!-- cleanResourceUrl = true|false &lt;BR&gt;       The Coolite controls can clean up the autogenerate WebResource Url so they look presentable. &lt;BR&gt;       Default is true --&amp;gt;&lt;BR&gt;  &lt;BR&gt;  &amp;lt;!-- gzip = true|false &lt;BR&gt;       Whether to automatically render scripts with gzip compression. &lt;BR&gt;       Only works when renderScripts="Embedded" and/or renderStyles="Embedded".&lt;BR&gt;       Default is true. --&amp;gt;&lt;BR&gt;  &lt;BR&gt;  &amp;lt;!-- scriptAdapter = Ext, jQuery, Prototype, YUI &lt;BR&gt;       Which script adapter to use. &lt;BR&gt;       Default is "Ext" --&amp;gt;&lt;BR&gt;  &lt;BR&gt;  &amp;lt;!-- renderScripts = Embedded, File, None&lt;BR&gt;       Whether to have the coolite controls output the required JavaScript includes or not.&lt;BR&gt;       Gives developer option of manually including required &amp;lt;script&amp;gt; files. &lt;BR&gt;       Default is Embedded --&amp;gt;&lt;BR&gt;  &lt;BR&gt;  &amp;lt;!-- renderStyles = Embedded, File, None&lt;BR&gt;       Whether to have the coolite controls output the required StyleSheet includes or not.&lt;BR&gt;       Gives developer option of manually including required &amp;lt;link&amp;gt; or &amp;lt;style&amp;gt; files.&lt;BR&gt;       Default is Embedded --&amp;gt;&lt;BR&gt;  &lt;BR&gt;  &amp;lt;!-- scriptMode = Release, Debug &lt;BR&gt;       Whether to include the Release (condensed) or Debug (with imline documentation) Ext JavaScript files.&lt;BR&gt;       Default is "Release" --&amp;gt;&lt;BR&gt;  &lt;BR&gt;  &amp;lt;!-- theme = Default, Gray &lt;BR&gt;       Which embedded theme to use.&lt;BR&gt;       Default is "Default" --&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;coolite&lt;BR&gt;    cleanResourceUrl="true"&lt;BR&gt;    gzip="true"&lt;BR&gt;    scriptAdapter="Ext" &lt;BR&gt;    renderScripts="true"&lt;BR&gt;    renderStyles="true"&lt;BR&gt;    scriptMode="Release"&lt;BR&gt;    theme="Gray"&lt;BR&gt;    /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;BR&gt;&lt;P&gt;Hope this helps.</description><pubDate>Tue, 19 Feb 2008 20:03:52 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>Looks like the sample is from an earlier/later version than the 0.3.1.12579 that I'm using.  &lt;/P&gt;&lt;P&gt;Here's a change that makes it work:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;renderScripts&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Embedded&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;renderStyles&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Embedded&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/P&gt;&lt;P&gt;As given, the example produces the error:&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;The value of the property 'renderScripts' cannot be parsed. The error is: The enumeration value must be one of the following: None, File, Embedded.&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;</description><pubDate>Tue, 19 Feb 2008 08:40:55 GMT</pubDate><dc:creator>swallace</dc:creator></item><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>Perfect, thanks!</description><pubDate>Tue, 19 Feb 2008 08:11:49 GMT</pubDate><dc:creator>swallace</dc:creator></item><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>Hi swallace,&lt;p&gt;The following code demonstrates where to add the global "coolite" configSection to the Web.config. Each of the properties/attributes are listed with a bit of description, optional values and default values.&lt;/p&gt;&lt;p&gt;[code]&amp;lt;?xml version="1.0"?&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;configuration&gt;&lt;br&gt;    &amp;lt;configSections&gt;&lt;br&gt;      &amp;lt;section name="coolite" type="Coolite.Ext.Web.GlobalConfig"/&gt;&lt;br&gt;    &amp;lt;/configSections&gt;&lt;/p&gt;&lt;p&gt;  &amp;lt;!-- COOLITE GLOBAL CONFIGURATION ATTRIBUTES --&gt;&lt;br&gt;  &amp;lt;!-- cleanResourceUrl = true|false &lt;br&gt;       The Coolite controls can clean up the autogenerate WebResource Url so they look presentable. &lt;br&gt;       Default is true --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- gzip = true|false &lt;br&gt;       Whether to automatically render scripts with gzip compression. &lt;br&gt;       Default is true. --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- scriptAdapter = Ext, jQuery, Prototype, YUI &lt;br&gt;       Which script adapter to use. &lt;br&gt;       Default is "Ext" --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- renderScripts = true|false &lt;br&gt;       Whether to have the coolite controls output the required JavaScript includes or not.&lt;br&gt;       Gives developer option of manually including required &amp;lt;script&gt; files. &lt;br&gt;       Default is true --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- renderStyles = true|false &lt;br&gt;       Whether to have the coolite controls output the required StyleSheet includes or not.&lt;br&gt;       Gives developer option of manually including required &amp;lt;link&gt;/&amp;lt;style&gt; files.&lt;br&gt;       Default is true --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- scriptMode = Release, Debug &lt;br&gt;       Whether to include the Release (condensed) or Debug (with documentation) JavaScript files&lt;br&gt;       Default is "release" --&gt;&lt;br&gt;  &lt;br&gt;  &amp;lt;!-- theme = Default, Gray &lt;br&gt;       Which embedded theme to use.&lt;br&gt;       Default is "Default" --&gt;&lt;/p&gt;&lt;p&gt;  &amp;lt;coolite&lt;br&gt;    cleanResourceUrl="true"&lt;br&gt;    gzip="true"&lt;br&gt;    scriptAdapter="Ext" &lt;br&gt;    renderScripts="true"&lt;br&gt;    renderStyles="true"&lt;br&gt;    scriptMode="Release"&lt;br&gt;    theme="Gray"&lt;br&gt;    /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/configuration&gt;&lt;br&gt;[/code]&lt;/p&gt;&lt;p&gt;The Theme can also be set at a Session level by using the ScriptManager.RegisterSessionTheme() method or directly by setting the "Coolite.Theme" Session value. Setting the Theme in the Session will override a Theme set in the Web.config. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;[code]&amp;lt;script runat="server"&gt;&lt;br&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br&gt;    {&lt;br&gt;        Coolite.Web.UI.ScriptManager.RegisterSessionTheme(Coolite.Web.UI.Theme.Gray);&lt;br&gt;    }&lt;br&gt;&amp;lt;/script&gt;&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;[code]&amp;lt;script runat="server"&gt;&lt;br&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br&gt;    {&lt;br&gt;        HttpContext.Current.Session["Coolite.Theme"] = Coolite.Web.UI.Theme.Gray;&lt;br&gt;    }&lt;br&gt;&amp;lt;/script&gt;&lt;br&gt;[/code]&lt;/p&gt;&lt;p&gt;&lt;br&gt;I have a detailed tutorial and screencast in the works, but they're not quite done. I'll update this thread once they're ready.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description><pubDate>Tue, 19 Feb 2008 06:35:20 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>Hi swallace,&lt;/P&gt;&lt;P&gt;Sure thing. The Ajaxian/ExtJS blog posts caught us a bit off guard. We were hoping to have one more day to complete a few of the critical tutorials. I'll have a full Web.config Example/tutorial available within the next few hours.</description><pubDate>Mon, 18 Feb 2008 21:13:41 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>Web.config</title><link>http://www.coolite.com/forums/Topic11-4-1.aspx</link><description>Could you post a quick example Web.config that shows where the changes for ScriptManager would go?  Thanks.</description><pubDate>Mon, 18 Feb 2008 13:05:23 GMT</pubDate><dc:creator>swallace</dc:creator></item></channel></rss>