kentico api

http://devnet.kentico.com/docs/10_0/api/html/R_Project_Kentico_API.htm

ScriptHelper.RegisterClientScriptBlock

https://docs.kentico.com/k10/release-notes-kentico-10

The MediaHelper, ScriptHelper and UIHelper classes were moved from the CMS.Helpers library into the new CMS.Base.Web.UI library/namespace.

 

https://devnet.kentico.com/documentation/api-changes/kentico-10

https://devnet.kentico.com/documentation/api-changes/kentico-10/22146

CMS.Helpers.ScriptHelper to CMS.Base.Web.UI.ScriptHelper

 

对比,windows本身自带了一个函数

https://docs.microsoft.com/en-us/dotnet/api/index?view=netframework-4.7&term=RegisterClientScriptBlock

        String csName = "ButtonClickScript";
        ClientScriptManager cs = Page.ClientScript;
        StringBuilder csText = new StringBuilder();
        csText.Append("<script type=\"text/javascript\"> function DoClick() {");
        csText.Append("Form1.Message.value='Text from client script.'} </");
        csText.Append("script>");
        cs.RegisterClientScriptBlock(this.GetType(),csName,csText.ToString());

 

 

ValidationHelper.GetString

http://devnet.kentico.com/docs/10_0/api/html/Methods_T_CMS_Helpers_ValidationHelper.htm

 

 

 

CMSAbstractWebPart

from CMS.PortalControls to CMS.PortalEngine.Web.UI

 

System.String CMS.CMSHelper.CMSContext.GetUrl(System.String) Method

https://devnet.kentico.com/documentation/api-changes/kentico-8/3499   在kentico7升级到kentico8的时候调整的

Class method

System.String CMS.CMSHelper.CMSContext.GetUrl(System.String)

was moved to

CMS.DocumentEngine.DocumentURLProvider.GetUrl

 

转载于:https://www.cnblogs.com/chucklu/p/7809029.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值