using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Globalization;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using mojoPortal.Business;
using mojoPortal.Business.WebHelpers;
using mojoPortal.Web;
using mojoPortal.Web.Framework;
using mojoPortal.Web.Editor;
namespace SiteOffice.ExternalMail{
public partial class ExternalMailEditor : UserControl
{
#region OnInit
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
this.Load += new EventHandler(Page_Load);
this.btnSend.Click += new EventHandler(btnSend_Click);
SiteUtils.SetupEditor(edContent);
}
#endregion
protected SiteSettings siteSettings;
protected void Page_Load(object sender, EventArgs e)
{
LoadSettings();
PopulateLabels();
}
void btnSend_Click(object sender, EventArgs e)
{
litTest.Text = edContent.Text;
}
private void PopulateLabels()
{
btnSend.Text = "Send";
}
private void LoadSettings()
{
siteSettings = CacheHelper.GetCurrentSiteSettings();
edContent.WebEditor.ToolBar = ToolBar.Full;
edContent.WebEditor.Height = Unit.Parse("350px");
}
}
}
|