--------------------------------------------------------------------------
目录
--------------------------------------------------------------------------
I. 添加到 VISUAL STUDIO 工具箱
II. Version 2.0.0 改变
III. WEB.CONFIG 配置实例
IV. <extnet> WEB.CONFIG 全局变量
V. 版权
-------------------------------------------------------------------------
I. 添加 VISUAL STUDIO 工具箱
--------------------------------------------------------------------------
下面几步手动安装到 Visual Studio 和 Visual Web Developer Express 工具箱.
1. 打开 Visual Studio (2008 or 2010) or Visual Web Developer Express (2008 or 2010).
2. 打开一个现存的网站或者新建一个网站项目.
3. 打开或者新建一个.aspx 网页.
4. 定位工具箱面板。
5. 新建一个新的 Ext.NET 选项卡,通过下面方法:
a. 右键单击工具箱.
b. 选择 "添加选项卡".
c. 键入 "Ext.NET".
6. 在 "Ext.NET" 选项卡里, 点击右键并且选择“选择项”.
7. 在 ".NET 类" 选项卡下选择 "浏览" 按钮。
8. 选择并定位到 Ext.Net.dll 文件,
Navigate to and select the file, choose open, then
select the "Ext.NET.dll" from the extracted download .zip package.
Ext.NET can always be downloaded from the following location, see
http://www.ext.net/download/
9. The component items should now be added to the list and
pre-checked. You can confirm by sorting the list by "Namespace"
and scrolling to "Ext.Net"
10. Click "OK". The icons should be added to your ToolBox. You should
now be able to drag/drop a Ext.NET component onto your WebForm.
11. Enjoy.
--------------------------------------------------------------------------
II. Version 2.0.0 BREAKING CHANGES
--------------------------------------------------------------------------
See CHANGELOG.txt
--------------------------------------------------------------------------
III. SAMPLE WEB.CONFIG
--------------------------------------------------------------------------
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
</configSections>
<extnet scriptMode="Release" /> <!-- See Property Options in README.txt -->
<!--
The following system.web section is only requited for running ASP.NET AJAX under Internet
Information Services 6.0 (or earlier).
This section is not necessary for IIS 7.0 or later, although does not have to be removed.
-->
<system.web>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
</httpHandlers>
<httpModules>
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
</httpModules>
</system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0.
It is not necessary for previous version of IIS, although does not have to be removed.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add
name="DirectRequestModule"
preCondition="managedHandler"
type="Ext.Net.DirectRequestModule, Ext.Net"
/>
</modules>
<handlers>
<add
name="DirectRequestHandler"
verb="*"
path="*/ext.axd"
preCondition="integratedMode"
type="Ext.Net.ResourceHandler"
/>
</handlers>
</system.webServer>
</configuration>
--------------------------------------------------------------------------
IV. <extnet> WEB.CONFIG GLOBAL CONFIGURATION PROPERTIES
--------------------------------------------------------------------------
directEventUrl : string
The url to request for all DirectEvents.
Default is "".
directMethodNamespace : string
Specifies a custom namespace prefix to use for the DirectMethods. Example "CompanyX".
Example with default value:
Ext.net.DirectMethods.doSomething();
Example with a custom value:
CompanyX.doSomething();
directMethodProxy : ClientProxy
Specifies whether server-side Methods marked with the [DirectMethod] attribute will output configuration script to the client.
If false, the DirectMethods can still be called, but the Method proxies are not automatically generated.
Specifies ajax method proxies creation. The Default value is to Create the proxy for each ajax method.
Default is 'Default'. Options include [Default|Include|Ignore]
ajaxViewStateMode : ViewStateMode
Specifies whether the ViewState should be returned and updated on the client during an DirectEvent.
The Default value is to Exclude the ViewState from the Response.
Default is 'Default'. Options include [Default|Exclude|Include]
cleanResourceUrl : boolean
The Ext.NET controls can clean up the autogenerate WebResource Url so they look presentable.
Default is 'true'. Options include [true|false]
clientInitDirectMethods : boolean
Specifies whether server-side Methods marked with the [DirectMethod] attribute will output configuration script to the client.
If false, the DirectMethods can still be called, but the Method proxies are not automatically generated.
Default is 'false'. Options include [true|false]
idMode : IDMode
Specifies how the Client ID for the control should be sent to the client. Similar in functionality to ASP.NET 4.0 ClientIDMode property.
The Default value is Legacy.
Default is 'Legacy'. Options include [Legacy|Inherit|Static|Ignore|Explicit]
initScriptMode : InitScriptMode
Specifies how the initialization JavaScript code will be rendered in the client.
Inline will place the Ext.onReady block within the Page <head>.
Linked will create a link to the init block and download in a separate request.
The Default value is Inline.
Default is 'Inline'. Options include [Inline|Linked]
locale : string
Specifies language of the ExtJS resources to use.
Default is to return the System.Threading.Thread.CurrentThread.CurrentUICulture if available.
gzip : boolean
Whether to automatically render scripts with gzip compression.
Only works when renderScripts="Embedded" and/or renderStyles="Embedded".
Default is true. Options include [true|false]
scriptAdapter : ScriptAdapter
Gets or Sets the current script Adapter.
Default is "Ext". Options include [Ext|jQuery|Prototype|YUI]
removeViewState : boolean
True to completely remove the __VIEWSTATE field from the client.
If true, the VIEWSTATE is not sent to, nor returned from the client.
Default is "false". Options include [true|false]
renderScripts : ResourceLocationType
Whether to have the Ext.NET controls output the required JavaScript includes or not.
Gives developer option of manually including required <script> files.
Default is Embedded. Options include [Embedded|File|None]
renderStyles : ResourceLocationType
Whether to have the Ext.NET controls output the required StyleSheet includes or not.
Gives developer option of manually including required <link> or <style> files.
Default is Embedded. Options include [Embedded|File|None]
resourcePath : string
Gets the prefix of the Url path to the base ~/extnet/ folder containing the resources files for this project.
The path can be Absolute or Relative.
scriptMode : ScriptMode
Whether to include the Release (condensed) or Debug (with inline documentation) Ext JavaScript files.
Default is "Release". Options include [Release|Debug]
sourceFormatting : boolean
Specifies whether the scripts rendered to the page should be formatted. 'True' = formatting, 'False' = minified/compressed.
Default is 'false'. Options include [true|false]
stateProvider : StateProvider
Gets or Sets the current script Adapter.
Default is 'PostBack'. Options include [PostBack|Cookie|None]
theme : Theme
Which embedded theme to use.
Default is "Default". Options include [Default|Gray|Slate]
quickTips : boolean
Specifies whether to render the QuickTips. Provides attractive and customizable tooltips for any element.
Default is 'true'. Options include [true|false]
--------------------------------------------------------------------------
IV. CREDITS
--------------------------------------------------------------------------
1. FamFamFam Icons provided by Mark James
http://www.famfamfam.com/lab/icons/silk/
See \Build\Resources\Ext\Licenses\FamFamFam.txt for more information.
2. Flag icons provided by Mark James
http://www.famfamfam.com/lab/icons/flags/
These icons are public domain, and as such are free for any use
(attribution appreciated but not required).
See \Build\Resources\Ext\Licenses\FlagIcons.txt for more information.
2. Silk companion icon set #1 - "More Silk!" provided by Damien Guard
http://www.damieng.com/icons/silkcompanion
See \Build\Ext.Net\Licenses\SilkCompanionIcon.txt for more information.
3. Json.NET provided by James Newton-King
http://www.codeplex.com/json/
See \Build\Ext.Net\Licenses\Newtonsoft.Json.txt
4. Ext JS JavaScript Library provided by Sencha, Inc.
http://www.sencha.com/products/js/
See \Build\Ext.Net\Licenses\ExtJS.txt