/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public partial class Demo : System.Web.UI.UserControl, umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor { [DataEditorSetting("testing", description="using DataEditorSettings on usercontrol")] public string Testing { get; set; } public string umbracoValue; protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { } else { Literal1.Text = Testing; } } public object value { get { return umbracoValue; } set { umbracoValue = value.ToString(); } } }
URL: http://umbraco.org
Comments
