Coolite配置管理软件开发历程之
1.从官方网站下载CooliteToolkit:
2.修改Web.config文件
<?xmlversion="1.0"?>
<configuration>
<configSections>
<sectionGroupname="system.web.extensions"type="System.Web.Configuration.SystemWebExtensionsSectionGroup,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35">
<sectionGroupname="scripting"type="System.Web.Configuration.ScriptingSectionGroup,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35">
<sectionname="scriptResourceHandler"type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"requirePermission="false"allowDefinition="MachineToApplication"/>
<sectionGroupname="webServices"type="System.Web.Configuration.ScriptingWebServicesSectionGroup,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35">
<sectionname="jsonSerialization"type="System.Web.Configuration.ScriptingJsonSerializationSection,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"requirePermission="false"allowDefinition="Everywhere"/>
<sectionname="profileService"type="System.Web.Configuration.ScriptingProfileServiceSection,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"requirePermission="false"allowDefinition="MachineToApplication"/>
<sectionname="authenticationService"type="System.Web.Configuration.ScriptingAuthenticationServiceSection,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"requirePermission="false"allowDefinition="MachineToApplication"/>
<sectionname="roleService"type="System.Web.Configuration.ScriptingRoleServiceSection,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"requirePermission="false"allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<!--<connectionStrings/>-->
<!--<connectionStrings/>-->
<connectionStrings>
<clear/>
<addname="DB_Connect"connectionString="Password=;PersistSecurityInfo=True;UserID=sa;InitialCatalog=HRDB;DataSource=."/>
</connectionStrings>
<system.web>
<!--
设置compilationdebug="true"可将调试符号插入
已编译的页面中。但由于这会
影响性能,因此只在开发过程中将此值
设置为true。
-->
<compilationdebug="true">
<assemblies>
<addassembly="System.Core,Version=3.5.0.0,Culture=neutral,PublicKeyToken=B77A5C561934E089"/>
<addassembly="System.Data.DataSetExtensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=B77A5C561934E089"/>
<addassembly="System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
<addassembly="System.Xml.Linq,Version=3.5.0.0,Culture=neutral,PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
通过<authentication>节可以配置ASP.NET用来
识别进入用户的
安全身份验证模式。
-->
<authenticationmode="Windows"/>
<!--
如果在执行请求的过程中出现未处理的错误,
则通过<customErrors>节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的html错误页
以代替错误堆栈跟踪。
<customErrorsmode="RemoteOnly"defaultRedirect="GenericErrorPage.htm">
<errorstatusCode="403"redirect="NoAccess.htm"/>
<errorstatusCode="404"redirect="FileNotFound.htm"/>
</customErrors>
-->
<pages>
<controls>
<addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
<addtagPrefix="asp"namespace="System.Web.UI.WebControls"assembly="System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<removeverb="*"path="*.asmx"/>
<addpath="*/coolite.axd"verb="*"type="Coolite.Ext.Web.ResourceManager"validate="false"/>
<addverb="*"path="*.asmx"validate="false"type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
<addverb="*"path="*_AppService.axd"validate="false"type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
<addverb="GET,HEAD"path="ScriptResource.axd"type="System.Web.Handlers.ScriptResourceHandler,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"validate="false"/>
</httpHandlers>
<httpModules>
<addname="ScriptModule"type="System.Web.Handlers.ScriptModule,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compilerlanguage="c#;cs;csharp"extension=".cs"warningLevel="4"type="Microsoft.CSharp.CSharpCodeProvider,System,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089">
<providerOptionname="CompilerVersion"value="v3.5"/>
<providerOptionname="WarnAsError"value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
在Internet信息服务7.0下运行ASP.NETAJAX需要system.webServer
节。对早期版本的IIS来说则不需要此节。
-->
<system.webServer>
<validationvalidateIntegratedModeConfiguration="false"/>
<modules>
<removename="ScriptModule"/>
<addname="ScriptModule"preCondition="managedHandler"type="System.Web.Handlers.ScriptModule,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<removename="WebServiceHandlerFactory-Integrated"/>
<removename="ScriptHandlerFactory"/>
<removename="ScriptHandlerFactoryAppServices"/>
<removename="ScriptResource"/>
<addname="ScriptHandlerFactory"verb="*"path="*.asmx"preCondition="integratedMode"type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
<addname="ScriptHandlerFactoryAppServices"verb="*"path="*_AppService.axd"preCondition="integratedMode"type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
<addname="ScriptResource"preCondition="integratedMode"verb="GET,HEAD"path="ScriptResource.axd"type="System.Web.Handlers.ScriptResourceHandler,System.Web.Extensions,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentityname="System.Web.Extensions"publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-1.1.0.0"newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.Extensions.Design"publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-1.1.0.0"newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
3.项目中引用
在项目点击引用,通过浏览增加Coolite.Ext.Web.dll、Coolite.Utilities.dll引用
4.工具箱增加
在工具箱增加CooliteToolKIT。增加文件:Coolite.Ext.Web.dll
以下是官方配置:
Product :CooliteToolkitCommunityEdition
Version :0.8.2
LastUpdated:2009-12-21
--------------------------------------------------------------------------
CONTENTS
--------------------------------------------------------------------------
I. ADDTOVISUALSTUDIOTOOLBOXINSTRUCTIONS
II. SAMPLEWEB.CONFIG
III. CREDITS
--------------------------------------------------------------------------
I.ADDTOVISUALSTUDIOTOOLBOXINSTRUCTIONS
--------------------------------------------------------------------------
Ifyourantheautomaticinstaller(.msi),theCooliteToolkitcomponent
iconsshouldbeautomaticallyinstalledtoyourVisualStudio2005/2008
Toolbox.
The.msiinstallerdoesnotautomaticallyinstalltheToolboxiconstothe
VisualWebDeveloper2005/2008Toolbox.Theymustbeaddedmanually.
Thefollowingstepsarerequiredtomanuallyinstallthecontrolsinto
yourVisualStudioorVisualWebDeveloperExpressToolbox.
1. OpenVisualStudioorVisualWebDeveloperExpress.
2. Openanexistingwebsiteorcreateanewwebsiteproject.
3. Openorcreateanew.aspxpage.
4. OpentheToolBoxpanel,typicallylocatedontheleftsideina
fly-outpanel(Ctrl+Alt+x).
5. Createanew"CooliteToolkit"Tab,by...
a.Right-ClickintheToolBoxarea.
b.Select"AddTab".
c.Enter"CooliteToolkit".
6. Insidethe"CooliteToolkit"tab,Right-Clickandselect
"ChooseItems...".
7. Underthe".NETFrameworkComponents"Tabselectthe"Browse"
button.
8. NavigatetoandselecttheCoolite.Ext.Web.dllfile,chooseopen.
NOTE:Iftheautomaticinstallerhasbeenrunpreviously,the
Coolite.Ext.Web.dllcantypicallybefoundinthe
followinglocation:
C:\ProgramFiles\Coolite\CooliteToolkitCommunityv0.8.2\
9. Thecomponentitemsshouldnowbeaddedtothelistand
pre-checked.Youcanconfirmbysortingthelistby"Namespace"
andscrollingto"Coolite.Ext.Web"
10.Click"OK".TheiconsshouldbeaddedtoyourToolBox.Youshould
nowbeabletodrag/dropaCoolitecomponentontoyourWebForm.
11.Enjoy.
--------------------------------------------------------------------------
III.SAMPLEWEB.CONFIG
--------------------------------------------------------------------------
<?xmlversion="1.0"?>
<configuration>
<configSections>
<sectionname="coolite"type="Coolite.Ext.Web.GlobalConfig"requirePermission="false"/>
</configSections>
<!--
COOLITEGLOBALCONFIGURATIONPROPERTIES
ajaxEventUrl:string
TheurltorequestforallAjaxEvents.
Defaultis"".
ajaxMethodNamespace:string
SpecifiesacustomnamespaceprefixtousefortheAjaxMethods.Example"CompanyX".
Defaultis"Coolite.AjaxMethods".
ajaxMethodProxy:ClientProxy
Specifieswhetherserver-sideMethodsmarkedwiththe[AjaxMethod]attributewilloutputconfigurationscripttotheclient.
Iffalse,theAjaxMethodscanstillbecalled,buttheMethodproxiesarenotautomaticallygenerated.
Specifiesajaxmethodproxiescreation.TheDefaultvalueistoCreatetheproxyforeachajaxmethod.
Defaultis"Default".Optionsinclude[Default|Include|Ignore]
ajaxViewStateMode:ViewStateMode
SpecifieswhethertheViewStateshouldbereturnedandupdatedontheclientduringanAjaxEvent.
TheDefaultvalueistoExcludetheViewStatefromtheResponse.
Defaultis"Default".Optionsinclude[Default|Exclude|Include]
cleanResourceUrl:boolean
TheCoolitecontrolscancleanuptheautogenerateWebResourceUrlsotheylookpresentable.
Defaultis"true".Optionsinclude[true|false]
clientInitAjaxMethods:boolean
Specifieswhetherserver-sideMethodsmarkedwiththe[AjaxMethod]attributewilloutputconfigurationscripttotheclient.
Iffalse,theAjaxMethodscanstillbecalled,buttheMethodproxiesarenotautomaticallygenerated.
Defaultis"false".Optionsinclude[true|false]
idMode:IDMode
SpecifieshowtheClientIDforthecontrolshouldbesenttotheclient.SimilarinfunctionalitytoASP.NET4.0ClientIDModeproperty.
TheDefaultvalueisLegacy.
Defaultis"Legacy".Optionsinclude[Legacy|Inherit|Static|Ignore|Explicit]
initScriptMode:InitScriptMode
SpecifieshowtheinitializationJavaScriptcodewillberenderedintheclient.
InlinewillplacetheExt.onReadyblockwithinthePage<head>.
Linkedwillcreatealinktotheinitblockanddownloadinaseparaterequest.
TheDefaultvalueisInline.
Defaultis"Inline".Optionsinclude[Inline|Linked]
locale:string
SpecifieslanguageoftheExtJSresourcestouse.
DefaultistoreturntheSystem.Threading.Thread.CurrentThread.CurrentUICultureifavailable.
gzip:boolean
Whethertoautomaticallyrenderscriptswithgzipcompression.
OnlyworkswhenrenderScripts="Embedded"and/orrenderStyles="Embedded".
Defaultistrue.Optionsinclude[true|false]
scriptAdapter:ScriptAdapter
GetsorSetsthecurrentscriptAdapter.
Defaultis"Ext".Optionsinclude[Ext|jQuery|Prototype|YUI]
removeViewState:boolean
Truetocompletelyremovethe__VIEWSTATEfieldfromtheclient.
Iftrue,theVIEWSTATEisnotsentto,norreturnedfromtheclient.
Defaultis"false".Optionsinclude[true|false]
renderScripts:ResourceLocationType
WhethertohavethecoolitecontrolsoutputtherequiredJavaScriptincludesornot.
Givesdeveloperoptionofmanuallyincludingrequired<script>files.
DefaultisEmbedded.Optionsinclude[Embedded|File|None]
renderStyles:ResourceLocationType
WhethertohavethecoolitecontrolsoutputtherequiredStyleSheetincludesornot.
Givesdeveloperoptionofmanuallyincludingrequired<link>or<style>files.
DefaultisEmbedded.Optionsinclude[Embedded|File|None]
resourcePath:string
GetstheprefixoftheUrlpathtothebase~/Coolite/foldercontainingtheresourcesfilesforthisproject.
ThepathcanbeAbsoluteorRelative.
scriptMode:ScriptMode
WhethertoincludetheRelease(condensed)orDebug(withinlinedocumentation)ExtJavaScriptfiles.
Defaultis"Release".Optionsinclude[Release|Debug]
sourceFormatting:boolean
Specifieswhetherthescriptsrenderedtothepageshouldbeformatted."True"=formatting,"False"=minified/compressed.
Defaultis"false".Optionsinclude[true|false]
stateProvider:StateProvider
GetsorSetsthecurrentscriptAdapter.
Defaultis"PostBack".Optionsinclude[PostBack|Cookie|None]
theme:Theme
Whichembeddedthemetouse.
Defaultis"Default".Optionsinclude[Default|Gray|Slate]
quickTips:boolean
SpecifieswhethertorendertheQuickTips.Providesattractiveandcustomizabletooltipsforanyelement.
Defaultis"true".Optionsinclude[true|false]
-->
<coolitetheme="Default"/>
<!--
Thefollowingsystem.websectionisonlyrequitedforrunningASP.NETAJAXunderInternet
InformationServices6.0(orearlier). ThissectionisnotnecessaryforIIS7.0orlater.
-->
<system.web>
<httpHandlers>
<addpath="*/coolite.axd"verb="*"type="Coolite.Ext.Web.ResourceManager"validate="false"/>
</httpHandlers>
<httpModules>
<addname="AjaxRequestModule"type="Coolite.Ext.Web.AjaxRequestModule,Coolite.Ext.Web"/>
</httpModules>
</system.web>
<!--
Thesystem.webServersectionisrequiredforrunningASP.NETAJAXunderInternetInformationServices7.0.
ItisnotnecessaryforpreviousversionofIIS.
-->
<system.webServer>
<validationvalidateIntegratedModeConfiguration="false"/>
<modules>
<addname="AjaxRequestModule"preCondition="managedHandler"type="Coolite.Ext.Web.AjaxRequestModule,Coolite.Ext.Web"/>
</modules>
<handlers>
<addname="AjaxRequestHandler"verb="*"path="*/coolite.axd"preCondition="integratedMode"type="Coolite.Ext.Web.ResourceManager"/>
</handlers>
</system.webServer>
</configuration>
--------------------------------------------------------------------------
IV.CREDITS
--------------------------------------------------------------------------
1. FamFamFamIconsprovidedbyMarkJames
See\Build\Resources\Coolite\Licenses\FamFamFam.txtformoreinformation.
2. Json.NETprovidedbyJamesNewton-King
See\Build\Resources\Coolite\Licenses\Newtonsoft.Json.txt
3. ExtJS-JavaScriptLibraryprovidedbyExtJSLLC
See\Build\Resources\Coolite\Licenses\ExtJS.txt
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Copyright2006-2009CooliteInc.,Allrightsreserved.
CooliteInc.
208,10113104Street
Edmonton,Alberta,CanadaT5J1A1
+1(888)775-5888