/******** * @version : 2.1.1 - Ext.NET Pro License * @author : Ext.NET, Inc. http://www.ext.net/ * @date : 2012-12-10 * @copyright : Copyright (c) 2007-2012, Ext.NET, Inc. (http://www.ext.net/). All rights reserved. * @license : See license.txt and http://www.ext.net/license/. ********/ using System; using System.ComponentModel; using System.Drawing; using System.Web.UI; namespace Ext.Net { /// /// /// [Meta] [DefaultProperty("ScriptBlock")] [ParseChildren(true, "ScriptBlock")] [ToolboxBitmap(typeof(XScript), "Build.ToolboxIcons.XScript.bmp")] [Designer(typeof(EmptyDesigner))] [Description("")] public partial class XScript : BaseControl { /// /// /// [Description("")] public XScript() { } /// /// /// [Description("")] protected override bool RemoveContainer { get { return true; } } /// /// /// [Meta] [NotifyParentProperty(true)] [PersistenceMode(PersistenceMode.InnerDefaultProperty)] [DefaultValue("")] [Description("Script text")] public string ScriptBlock { get { return this.State.Get("ScriptBlock", ""); } set { this.State.Set("ScriptBlock", value); } } /// /// /// /// [Description("")] protected override void OnPreRender(EventArgs e) { if (!this.DesignMode) { this.Controls.Add(new LiteralControl(TokenUtils.ReplaceRawToken(TokenUtils.ParseTokens(this.ScriptBlock, this)))); } base.OnPreRender(e); } } }