本文整理汇总了C#中EkMessageHelper.GetMessage方法的典型用法代码示例。如果您正苦于以下问题:C# EkMessageHelper.GetMessage方法的具体用法?C# EkMessageHelper.GetMessage怎么用?C# EkMessageHelper.GetMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EkMessageHelper
的用法示例。
在下文中一共展示了EkMessageHelper.GetMessage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, System.EventArgs e)
{
m_refMsg = m_refContApi.EkMsgRef;
Utilities.ValidateUserLogin();
if (m_refContApi.RequestInformationRef.UserId == 0)
{
Response.Redirect(m_refContApi.ApplicationPath + "reterror.aspx?info=" + Server.UrlEncode(m_refMsg.GetMessage("msg login cms user")), false);
return;
}
Ektron.Cms.API.JS.RegisterJS(this, Ektron.Cms.API.JS.ManagedScript.EktronJS);
Ektron.Cms.API.JS.RegisterJS(this, Ektron.Cms.API.JS.ManagedScript.EktronStringJS);
Ektron.Cms.API.JS.RegisterJS(this, Ektron.Cms.API.JS.ManagedScript.EktronXmlJS);
//Setting Content Designer properties
cdSignature.AllowScripts = true;
cdSignature.Height = 300;
cdSignature.Visible = true;
cdSignature.Toolbars = Ektron.ContentDesignerWithValidator.Configuration.Minimal;
cdSignature.ShowHtmlMode = false;
// Localization
cmdOk.Value = m_refMsg.GetMessage("btn save");
close.Value = m_refMsg.GetMessage("btn cancel");
sSignatureTooLong.Text = m_refMsg.GetMessage("js:Please choose a shorter signature");
}
示例2: Page_Load
protected void Page_Load(object sender, System.EventArgs e)
{
msgHelper = _refCommonApi.EkMsgRef;
string pageAction;
Ektron.Cms.Content.EkContent objContentRef;
objContentRef = _refContentApi.EkContentRef;
RegisterResources();
SetServerJSVariables();
//Licensing For 7.6
if (!Ektron.Cms.DataIO.LicenseManager.LicenseManager.IsFeatureEnable(_refContentApi.RequestInformationRef, Ektron.Cms.DataIO.LicenseManager.Feature.UrlAliasing, false))
{
Utilities.ShowError(_refContentApi.EkMsgRef.GetMessage("feature locked error"));
return;
}
if (!(_refCommonApi.IsAdmin() || objContentRef.IsARoleMember((long)Ektron.Cms.Common.EkEnumeration.CmsRoleIds.UrlAliasingAdmin, _refCommonApi.RequestInformationRef.UserId, false)))
{
Utilities.ShowError(_refContentApi.EkMsgRef.GetMessage("User not authorized"));
return;
}
_manualAliasAPI = new Ektron.Cms.UrlAliasing.UrlAliasManualApi();
//Labels got from resource file
lblaliasname.Text = msgHelper.GetMessage("lbl alias");
lblContentBlk = msgHelper.GetMessage("content block label");
lblTitle.Text = msgHelper.GetMessage("generic title");
lblLink.Text = msgHelper.GetMessage("lbl quick link") + ":";
lblTemplates.Text = msgHelper.GetMessage("lbl quick link") + ":";
lblPrimary.Text = msgHelper.GetMessage("lbl primary");
lblActive.Text = msgHelper.GetMessage("active label");
lblAddVar.Text = msgHelper.GetMessage("lbl alias additional variables");
lblQueryStringAction.Text = msgHelper.GetMessage("lbl querstringaction");
lblaliasname.ToolTip = lblaliasname.Text;
lblTitle.ToolTip = lblTitle.Text;
lblLink.ToolTip = lblLink.Text;
lblTemplates.ToolTip = lblTemplates.Text;
lblPrimary.ToolTip = lblPrimary.Text;
lblActive.ToolTip = lblActive.Text;
lblAddVar.ToolTip = lblAddVar.Text;
lblQueryStringAction.ToolTip = lblQueryStringAction.Text;
pageAction = Request.QueryString["action"];
siteid = Request.QueryString["fId"];
workareaDir = _refContentApi.RequestInformationRef.WorkAreaDir;
if ((string)(pageAction) == "addalias")
{
DisplayAdd();
}
else if ((string)(pageAction) == "view")
{
DisplayView();
}
else if ((string)(pageAction) == "editalias")
{
DisplayEdit();
}
System.Collections.Generic.List<string> ext_alias = null;
ext_alias = _manualAliasAPI.GetFileExtensions();
listAliasExtension.DataSource = ext_alias;
listAliasExtension.DataBind();
}
示例3: Page_Init
protected void Page_Init(object sender, System.EventArgs e)
{
// resource text string tokens
m_refMsg = m_refContentApi.EkMsgRef;
string closeDialogText = (string) (m_refMsg.GetMessage("close this dialog"));
string cancelText = (string) (m_refMsg.GetMessage("btn cancel"));
// assign resource text string values
btnConfirmOk.Text = m_refMsg.GetMessage("lbl ok");
btnConfirmOk.NavigateUrl = "#" + m_refMsg.GetMessage("lbl ok");
btnConfirmCancel.Text = cancelText;
btnConfirmCancel.NavigateUrl = "#" + cancelText;
btnCloseSyncStatus.Text = m_refMsg.GetMessage("close title");
btnCloseSyncStatus.NavigateUrl = "#" + m_refMsg.GetMessage("close title");
btnStartSync.Text = m_refMsg.GetMessage("btn sync now");
closeDialogLink.Text = "<span class=\"ui-icon ui-icon-closethick\">" + m_refMsg.GetMessage("close title") + "</span>";
closeDialogLink.NavigateUrl = "#" + System.Text.RegularExpressions.Regex.Replace((string) (m_refMsg.GetMessage("close title")), "\\s+", "");
closeDialogLink.ToolTip = closeDialogText;
closeDialogLink2.Text = closeDialogLink.Text;
closeDialogLink2.NavigateUrl = closeDialogLink.NavigateUrl;
closeDialogLink2.ToolTip = closeDialogText;
closeDialogLink3.Text = closeDialogLink.Text;
closeDialogLink3.NavigateUrl = closeDialogLink.NavigateUrl;
closeDialogLink3.ToolTip = closeDialogText;
lblSyncStatus.Text = string.Format(m_refMsg.GetMessage("lbl sync status"), " <span class=\"statusHeaderProfileId\"></span>");
m_jsResources = (SyncResources) (LoadControl("sync/SyncResources.ascx"));
m_jsResources.ID = "jsResources";
sync_jsResourcesPlaceholder.Controls.Add(m_jsResources);
}
示例4: Page_Load
protected void Page_Load(object sender, System.EventArgs e)
{
try
{
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "no-cache");
Response.Expires = -1;
CurrentUserId = m_refCommon.RequestInformationRef.UserId;
m_refContent = m_refCommon.EkContentRef;
m_refMsg = m_refCommon.EkMsgRef;
RegisterResources();
//TODO: Ross - Not sure which role to check
if ((CurrentUserId == 0) || (Convert.ToBoolean(m_refCommon.RequestInformationRef.IsMembershipUser) && m_refContent.IsARoleMember((long)Ektron.Cms.Common.EkEnumeration.CmsRoleIds.TaxonomyAdministrator, CurrentUserId, false) == false))
{
Response.Redirect("login.aspx?fromLnkPg=1", false);
return;
}
else
{
AppImgPath = m_refCommon.AppImgPath;
EnableMultilingual = m_refCommon.EnableMultilingual;
if ((Request.QueryString["action"] != null) && Request.QueryString["action"] != "")
{
m_strPageAction = Request.QueryString["action"].ToLower();
}
Utilities.SetLanguage(m_refCommon);
MenuLanguage = m_refCommon.ContentLanguage;
switch (m_strPageAction)
{
case "deleted":
Message.Text = m_refMsg.GetMessage("lbl menu") + " \'" + Request.QueryString["title"] + "\' " + m_refMsg.GetMessage("lbl deleted");
Message.Text = Message.Text + "<script language=\"javascript\">" + "\r\n";
Message.Text = Message.Text + "top.refreshMenuAccordion(" + MenuLanguage + ");" + "\r\n";
Message.Text = Message.Text + "</script>" + "\r\n";
break;
case "viewcontent":
case "removeitems":
Control m_vi;
m_vi = (Control)(LoadControl("controls/menu/viewitems.ascx"));
m_vi.ID = "menu";
DataHolder.Controls.Add(m_vi);
break;
case "viewmenu":
Control m_va;
m_va = (Control)(LoadControl("controls/menu/viewmenu.ascx"));
m_va.ID = "menuprops";
DataHolder.Controls.Add(m_va);
break;
}
}
}
catch (System.Threading.ThreadAbortException)
{
//Do nothing
}
catch (Exception ex)
{
Response.Redirect((string)("reterror.aspx?info=" + EkFunctions.UrlEncode(ex.Message + ".") + "&LangType=" + MenuLanguage), false);
}
}
示例5: Page_Load
private void Page_Load(object sender, System.EventArgs e)
{
_ContentApi = new ContentAPI();
_MessageHelper = _ContentApi.EkMsgRef;
if (EkFunctions.UrlDecode(Request.RawUrl).ToLower().Contains("<script") | EkFunctions.UrlDecode(Request.RawUrl).ToLower().Contains("</script"))
{
Utilities.ShowError(_MessageHelper.GetMessage("invalid querstring"));
return;
}
this.RegisterWorkareaCssLink();
this.RegisterDialogCssLink();
Ektron.Cms.API.JS.RegisterJSInclude(this, Ektron.Cms.API.JS.ManagedScript.EktronJS);
Ektron.Cms.API.JS.RegisterJSInclude(this, Ektron.Cms.API.JS.ManagedScript.EktronStringJS);
Ektron.Cms.API.JS.RegisterJSInclude(this, Ektron.Cms.API.JS.ManagedScript.EktronXmlJS);
Ektron.Cms.API.JS.RegisterJSInclude(this, "../ekxbrowser.js", "ekxbrowserJS");
Ektron.Cms.API.JS.RegisterJSInclude(this, "../ekutil.js", "ekutilJS");
Ektron.Cms.API.JS.RegisterJSInclude(this, "../RadWindow.js", "RadWindowJS");
Ektron.Cms.API.JS.RegisterJSInclude(this, "../ekformfields.js", "ekformfieldsJS");
this.ClientScript.RegisterClientScriptBlock(this.GetType(), "InitializeRadWindow", "InitializeRadWindow();", true);
this.Title.Text = this.GetMessage("lbl checkbox field");
this.RadTabStrip1.Tabs[0].Text = this.GetMessage("tab general"); ;
this.RadTabStrip1.Tabs[0].ToolTip = this.GetMessage("tab general") + " Tab"; ;
this.RadTabStrip1.Tabs[1].Text = this.GetMessage("tab validation"); ;
this.RadTabStrip1.Tabs[1].ToolTip = this.GetMessage("tab validation") + " Tab"; ;
this.RadTabStrip1.Tabs[2].Text = this.GetMessage("tab advanced"); ;
this.RadTabStrip1.Tabs[2].ToolTip = this.GetMessage("tab advanced") + " Tab"; ;
this.lblDefVal.InnerHtml = this.GetMessage("lbl default value");
this.lblDefValT.InnerHtml = this.GetMessage("lbl def val true");
this.lblDefValF.InnerHtml = this.GetMessage("lbl def val false");
this.lblCaption.InnerHtml = this.GetMessage("lbl caption c");
}
示例6: btnDecline_Click
protected void btnDecline_Click(object sender, System.EventArgs e)
{
string comment = "";
Ektron.Cms.UI.CommonUI.ApplicationAPI appUI = new Ektron.Cms.UI.CommonUI.ApplicationAPI();
m_refMsg = appUI.EkMsgRef;
RegExpValidator.ErrorMessage = m_refMsg.GetMessage("content size exceeded");
//RegExpValidator.ValidationExpression = Utilities.BuildRegexToCheckMaxLength(65000)
RegExpValidator.Validate();
if (RegExpValidator.IsValid)
{
if (DeclineText.Content.Trim().Length > 0)
{
comment = (string)("&comment=" + EkFunctions.UrlEncode((string)(DeclineText.Content.Trim().Replace("<p>", "").Replace("</p>", ""))));
}
if(comment.Length>255)
{
RegExpValidator.IsValid=false;
ViewToolBar();
}
else
{
Response.Redirect(content_api.ApplicationPath + "content.aspx?id=" + hdnContentId.Value + "&fldid=" + hdnFolderId.Value + "&action=declinecontent&LangType=" + hdnLangType.Value + comment);
}
}
else
{
ViewToolBar();
}
}
示例7: Page_Load
private void Page_Load(object sender, System.EventArgs e)
{
_ContentApi = new ContentAPI();
_MessageHelper = _ContentApi.EkMsgRef;
if (Request.RawUrl.ToLower().Contains("<script"))
{
Utilities.ShowError(_MessageHelper.GetMessage("invalid querstring"));
return;
}
this.RegisterWorkareaCssLink();
this.RegisterDialogCssLink();
Ektron.Cms.API.JS.RegisterJSInclude(this, Ektron.Cms.API.JS.ManagedScript.EktronJS);
Ektron.Cms.API.JS.RegisterJSInclude(this, Ektron.Cms.API.JS.ManagedScript.EktronStringJS);
Ektron.Cms.API.JS.RegisterJSInclude(this, Ektron.Cms.API.JS.ManagedScript.EktronXmlJS);
Ektron.Cms.API.JS.RegisterJSInclude(this, "../ekxbrowser.js", "ekxbrowserJS");
Ektron.Cms.API.JS.RegisterJSInclude(this, "../ekutil.js", "ekutilJS");
Ektron.Cms.API.JS.RegisterJSInclude(this, "../RadWindow.js", "RadWindowJS");
Ektron.Cms.API.JS.RegisterJSInclude(this, "../ekformfields.js", "ekformfieldsJS");
this.ClientScript.RegisterClientScriptBlock(this.GetType(), "InitializeRadWindow", "InitializeRadWindow();", true);
this.Title.Text = this.GetMessage("lbl group box");
this.RadTabStrip1.Tabs[0].Text = this.GetMessage("tab general");
this.RadTabStrip1.Tabs[0].ToolTip = this.RadTabStrip1.Tabs[0].Text + "Tab";
this.RadTabStrip1.Tabs[1].Text = this.GetMessage("tab advanced");
this.RadTabStrip1.Tabs[1].ToolTip = this.RadTabStrip1.Tabs[1].Text + "Tab";
this.RadTabStrip1.Tabs[2].Text = this.GetMessage("tab relevance");
this.RadTabStrip1.Tabs[2].ToolTip = this.RadTabStrip1.Tabs[2].Text + "Tab";
this.lblAppearance.InnerHtml = this.GetMessage("lbl appearance");
this.lblNoBorder.InnerHtml = this.GetMessage("lbl no border");
this.lblShowBorder.InnerHtml = this.GetMessage("lbl show border");
this.lblCaption.InnerHtml = this.GetMessage("lbl caption c");
this.txtCaption.Value = this.GetMessage("lbl fields");
this.sEnterCaption.Text = this.GetMessage("msg enter caption");
}
示例8: Page_Load
private void Page_Load(System.Object sender, System.EventArgs e)
{
RegisterResources();
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "no-cache");
Response.Expires = -1;
m_refContent = m_refContentApi.EkContentRef;
m_refMsg = m_refContentApi.EkMsgRef;
if (m_refContent.IsAllowed(0, 0, "users", "IsLoggedIn", 0) == false || m_refContent.IsAllowed(0, 0, "users", "IsAdmin", 0) == false)
{
if (!m_refContent.IsARoleMember(Convert.ToInt64(EkEnumeration.CmsRoleIds.AdminXmlConfig), m_refContent.RequestInformation.UserId, false))
{
Utilities.ShowError(m_refMsg.GetMessage("com: user does not have permission"));
}
}
if (!String.IsNullOrEmpty(Request.QueryString["action"]))
{
m_strPageAction = Request.QueryString["action"].ToLower();
}
if (!String.IsNullOrEmpty(Request.QueryString["LangType"]))
{
ContentLanguage = Convert.ToInt32(Request.QueryString["LangType"]);
m_refApi.SetCookieValue("LastValidLanguageID", ContentLanguage.ToString());
}
else
{
if (m_refApi.GetCookieValue("LastValidLanguageID") != "")
{
ContentLanguage = int.Parse(m_refApi.GetCookieValue("LastValidLanguageID"));
}
}
m_refApi.ContentLanguage = ContentLanguage;
StyleSheetJS.Text = m_refStyle.GetClientScript();
}
示例9: Page_Init
protected void Page_Init(object sender, EventArgs e)
{
var m_refMsg = new ContentAPI().EkMsgRef;
BackLabel.Text = m_refMsg.GetMessage("btn back");
DeleteLabel.Text = m_refMsg.GetMessage("btn delete");
//Register CSS
Ektron.Cms.API.Css.RegisterCss(this, Ektron.Cms.API.Css.ManagedStyleSheet.EktronWorkareaCss);
Ektron.Cms.API.Css.RegisterCss(this, Ektron.Cms.API.Css.ManagedStyleSheet.EktronWorkareaIeCss);
Ektron.Cms.API.Css.RegisterCss(this, Ektron.Cms.API.Css.ManagedStyleSheet.EktronFixedPositionToolbarCss);
Ektron.Cms.API.JS.RegisterJS(this, Ektron.Cms.API.JS.ManagedScript.EktronJFunctJS);
ltrlStyleSheetJS.Text = _styleHelper.GetClientScript();
_msgHelper = new EkMessageHelper(_contentApi.RequestInformationRef);
Utilities.ValidateUserLogin();
if (_contentApi.RequestInformationRef.IsMembershipUser == 1 || !_contentApi.IsARoleMember(Ektron.Cms.Common.EkEnumeration.CmsRoleIds.AdminPersonalize)) {
Response.Redirect(_contentApi.ApplicationPath + "reterror.aspx?info=" + _contentApi.EkMsgRef.GetMessage("msg login cms user"), true);
return;
}
BindToolbars();
this.image_link_100.Attributes.Add("onclick", string.Format("return validateList('{0}');", _msgHelper.GetMessage("select target content")));
}
示例10: Page_Load
private void Page_Load(System.Object sender, System.EventArgs e)
{
_messageHelper = contentAPI.EkMsgRef;
if (contentAPI.RequestInformationRef.IsMembershipUser == 1 || contentAPI.RequestInformationRef.UserId == 0)
{
Response.Redirect(contentAPI.ApplicationPath + "reterror.aspx?info=" + Server.UrlEncode(_messageHelper.GetMessage("msg login cms user")), false);
return;
}
//Put user code to initialize the page here
this.pageTitle.Text = (new ApplicationAPI()).EkMsgRef.GetMessage("ektron translation");
htmleditor = this.Request.Form["htmleditor"];
htmcontent = this.Request.Form["mycontent"];
// also run Tidy on the text
TidyNet.Tidy objTidy = new TidyNet.Tidy();
objTidy.Options.BreakBeforeBR = true;
objTidy.Options.CharEncoding = TidyNet.CharEncoding.UTF8;
objTidy.Options.DocType = TidyNet.DocType.Omit;
objTidy.Options.DropEmptyParas = false;
objTidy.Options.MakeClean = true;
objTidy.Options.NumEntities = true;
objTidy.Options.QuoteAmpersand = true;
objTidy.Options.QuoteMarks = false;
objTidy.Options.QuoteNbsp = true;
objTidy.Options.RawOut = false;
objTidy.Options.TidyMark = false;
objTidy.Options.Word2000 = true;
objTidy.Options.XmlOut = true;
TidyNet.TidyMessageCollection messageCollection = new TidyNet.TidyMessageCollection();
System.IO.MemoryStream streamIn = new System.IO.MemoryStream();
System.IO.MemoryStream streamOut = new System.IO.MemoryStream();
byte[] byteArray = Encoding.UTF8.GetBytes(htmcontent);
streamIn.Write(byteArray, 0, byteArray.Length);
streamIn.Position = 0;
objTidy.Parse(streamIn, streamOut, messageCollection);
streamOut.Position = 0;
string strTidyResult = Encoding.UTF8.GetString(streamOut.ToArray());
streamOut.Close();
streamIn.Close();
if ((strTidyResult == "") && (messageCollection.Errors > 0))
{
foreach (TidyNet.TidyMessage msg in messageCollection)
{
if (msg.Level == TidyNet.MessageLevel.Error)
{
strTidyResult = strTidyResult + msg.ToString() + "<br />";
}
}
htmcontent = strTidyResult;
content.Value = htmcontent;
}
else
{
strTidyResult = (string)(System.Text.RegularExpressions.Regex.Replace(strTidyResult, "[\\w\\W]*?<body>", "").Replace("</body>" + "\r\n" + "</html>", ""));
content.Value = strTidyResult;
}
}
示例11: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
_MessageHelper = _ContentApi.EkMsgRef;
_StyleHelper = new StyleHelper();
ltrMsgSelItem.Text = _MessageHelper.GetMessage("js:alert please select a config to delete");
ltrMsgDelConfig.Text = _MessageHelper.GetMessage("js:alert you sure you wish to delete this configuration Continue?");
CmsDeviceConfiguration cDevice = new CmsDeviceConfiguration(_ContentApi.RequestInformationRef);
if (!Page.IsPostBack)
{
long _id = -1;
if (!String.IsNullOrEmpty(Request.QueryString["id"]))
{
_id = Convert.ToInt64(Request.QueryString["id"]);
}
if (_id > -1)
{
cDevice.Delete(_id);
Response.Redirect("settings.aspx?action=viewalldeviceconfigurations", false);
}
DeleteDevicesToolBar();
BindData();
}
else
{
string _deviceIds = Request.Form["deleteConfigurationId"];
string[] _deviceValues;
if (!String.IsNullOrEmpty(_deviceIds))
{
_deviceValues = _deviceIds.Split(new char[] { ',' });
for (int i = 0; i < _deviceValues.Length; i++)
{
cDevice.Delete(Convert.ToInt64(_deviceValues[i]));
}
Response.Redirect("settings.aspx?action=viewalldeviceconfigurations", false);
}
}
}
示例12: Page_Load
private void Page_Load(System.Object sender, System.EventArgs e)
{
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "no-cache");
Response.Expires = -1;
SiteAPI m_refSiteApi = new SiteAPI();
m_refMsg = m_refSiteApi.EkMsgRef;
AppImgPath = m_refSiteApi.AppImgPath;
AppPath = m_refSiteApi.AppPath;
AppName = m_refSiteApi.AppName;
SITEPATH = m_refSiteApi.SitePath;
litTitle.Text = AppName + " " + m_refMsg.GetMessage("config page html title");
if ((m_refSiteApi.EkContentRef).IsAllowed(0, 0, "users", "IsLoggedIn",0) == false)
{
Response.Redirect("login.aspx?fromLnkPg=1", true);
return;
}
if ( Convert.ToBoolean(m_refSiteApi.RequestInformationRef.IsMembershipUser) || m_refSiteApi.RequestInformationRef.UserId == 0)
{
Response.Redirect("reterror.aspx?info=Please login as cms user", true);
return;
}
RegisterResources();
if (!(Request.QueryString["action"] == null))
{
m_strPageAction = Request.QueryString["action"];
if (m_strPageAction.Length > 0)
{
m_strPageAction = m_strPageAction.ToLower();
}
}
if (!(Request.QueryString["RefreshFrame"] == null))
{
if (Request.QueryString["RefreshFrame"].ToLower() == "true")
{
m_blnRefreshFrame = true;
}
}
StyleSheetJS.Text = m_refStyle.GetClientScript();
divTitleBar.InnerHtml = m_refStyle.GetTitleBar(m_refMsg.GetMessage("config page title"));
divToolBar.InnerHtml = ConfigToolBar();
}
示例13: Page_Load
protected void Page_Load(object sender, System.EventArgs e)
{
Utilities.ValidateUserLogin();
if (m_refContentApi.RequestInformationRef.IsMembershipUser == 1 || m_refContentApi.RequestInformationRef.UserId == 0)
{
Response.Redirect("blank.htm", false);
return;
}
m_refMsg = m_refContentApi.EkMsgRef;
AppImgPath = m_refContentApi.AppImgPath;
RegisterResources();
ltr_folder.Text = m_refMsg.GetMessage("lbl folder");
ltr_folderId.Text = m_refMsg.GetMessage("lbl folder-id");
StyleSheetJS.Text = m_refStyle.GetClientScript();
BuildToolBar();
}
示例14: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
m_refMsg = cApi.EkMsgRef;
jsEditorClosed.Text = m_refMsg.GetMessage("js: alert editor closed");
jsScope.Text = Ektron.Cms.Common.EkFunctions.HtmlEncode(Request.QueryString["scope"]);
jsEditorName.Text = Ektron.Cms.Common.EkFunctions.HtmlEncode(Request.QueryString["EditorName"]);
jsDEntrylink.Text = Ektron.Cms.Common.EkFunctions.HtmlEncode(Request.QueryString["dentrylink"]);
}
示例15: Page_PreInit
private void Page_PreInit(System.Object sender, System.EventArgs e)
{
m_refMsg = content_api.EkMsgRef;
if (content_api.RequestInformationRef.IsMembershipUser == 1 || content_api.RequestInformationRef.UserId == 0)
{
Response.Redirect(content_api.ApplicationPath + "reterror.aspx?info=" + Server.UrlEncode(m_refMsg.GetMessage("msg login cms user")), false);
return;
}
}