ToolKit Framework 最近更新

2008-4-3 13:32:32 作者:sheepchang 人气:
标签:ToolKit(22) Framework(45)

########################################################################################

ToolKit Class Library Ver1.0.3015.23984(2008-04-03)  what's new:

==================

1、修改系统错误日志记录类,增加日志记录开关。在Web.config中配置<add key="EnableLogger" value="true" />节点
是否允许记录日志。

########################################################################################

ToolKit Class Library Ver1.0.3014.28691(2008-04-02)  what's new:

==================

1、修改UrlRewriter和Ajax处理Handler配置的获取方式去掉以前的//configSections/section配置节点
把主体配置分别放到单独的Url.config和Ajax.config配置文件中,详细修改请看:
ToolKit.Rewriter.Config.RewriterConfiguration.cs、ToolKit.Ajax.AjaxHandlersConfig.cs。

########################################################################################

ToolKit Class Library Ver1.0.3013.24098(2008-04-01)  what's new:

==================

1、新增加Ajax处理Handler,可以在web.config中动态的配置Ajax请求处理类,如下:
Web.Config配置:

<configSections>
    <section name="AjaxConfig" type="ToolKit.Ajax.AjaxHandlersConfigHandler, ToolKit"/>
</configSections>

<AjaxConfig>
    <Rules name="AjaxPage" type="ToolKit.Demo.Web.Components.AjaxPage, ToolKit.Demo.Web" enable="true" context="true"/>
</AjaxConfig>

<httpHandlers>
    <add path="AjaxPage.ashx" verb="*" type="ToolKit.Ajax.SessionStateAjaxHandler,ToolKit"/>
</httpHandlers>

页面重写配置:分别对应/AjaxHandler/{类名}/{方法名}
<RewriterRule>
    <LookFor><![CDATA[~/AjaxHandler/(.*)/(.*)]]></LookFor>
    <SendTo><![CDATA[~/Interfaces/AjaxPage.ashx?className=$1&methodName=$2]]></SendTo>
</RewriterRule>

JS中的调用:
ToolKit.Demo.AjaxPage.WriteSession();
ToolKit.Demo.AjaxPage.GetSession();

########################################################################################

详情请看http://www.svnhost.cn/Project/Detail-14.shtml

类似资源

使用协议 - VIP服务 - 在线支付 - 联系我们 - 帮助文档 - Bug Report - 书签服务 - 联系电话:15079690152