예제 #1
0
 /// <summary>
 /// Handles the Load event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void Page_Load(object sender, EventArgs e)
 {
     regionId = Utility.GetIntParameter("regionId");
       this.Page.Title = LocalizationUtility.GetText("titleAddEditRegion");
       if(regionId <= 0) {
     _selectedSimpleHtml = new SimpleHtml();
       }
       else {
     _selectedSimpleHtml = new SimpleHtml(SimpleHtml.Columns.RegionId, regionId);
       }
       if(!Page.IsPostBack) {
     txtHtml.Value = HttpUtility.HtmlDecode(_selectedSimpleHtml.Html);
       }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     HtmlGenericControl divControl = new HtmlGenericControl("div");
       divControl.ID = "contentRegion";
       divControl.Attributes.Add("class", "contentRegion");
       Literal htmlControl = new Literal();
       SimpleHtml simpleHtml = new SimpleHtml("RegionId", base.RegionId);
       if(simpleHtml != null) {
     htmlControl.Text = HttpUtility.HtmlDecode(simpleHtml.Html);
       }
       else {
     htmlControl.Text = string.Empty;
       }
       divControl.Controls.Add(htmlControl);
       this.Controls.Add(divControl);
 }
예제 #3
0
 /// <summary>
 /// Handles the Load event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void Page_Load(object sender, EventArgs e)
 {
     regionId        = Utility.GetIntParameter("regionId");
     this.Page.Title = LocalizationUtility.GetText("titleAddEditRegion");
     if (regionId <= 0)
     {
         _selectedSimpleHtml = new SimpleHtml();
     }
     else
     {
         _selectedSimpleHtml = new SimpleHtml(SimpleHtml.Columns.RegionId, regionId);
     }
     if (!Page.IsPostBack)
     {
         txtHtml.Value = HttpUtility.HtmlDecode(_selectedSimpleHtml.Html);
     }
 }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            HtmlGenericControl divControl = new HtmlGenericControl("div");

            divControl.ID = "contentRegion";
            divControl.Attributes.Add("class", "contentRegion");
            Literal    htmlControl = new Literal();
            SimpleHtml simpleHtml  = new SimpleHtml("RegionId", base.RegionId);

            if (simpleHtml != null)
            {
                htmlControl.Text = HttpUtility.HtmlDecode(simpleHtml.Html);
            }
            else
            {
                htmlControl.Text = string.Empty;
            }
            divControl.Controls.Add(htmlControl);
            this.Controls.Add(divControl);
        }
예제 #5
0
        public void Insert(int RegionId,string Html,string CreatedBy,DateTime CreatedOn,string ModifiedBy,DateTime ModifiedOn)
        {
            SimpleHtml item = new SimpleHtml();

            item.RegionId = RegionId;

            item.Html = Html;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }