Perma LinkI get right into listing out a few examples that use the Visual Studio built in Editors.
[DefaultValue("")
, Editor( typeof(System.Web.UI.Design.UrlEditor), typeof(System.Drawing.Design.UITypeEditor))
, System.Web.UI.UrlProperty("*.asmx")
, System.ComponentModel.Bindable(true)]
public string ServiceURL { get; set; }
[DefaultValue("")
, Editor(typeof(System.Web.UI.Design.WebControls.StyleCollectionEditor ), typeof(System.Drawing.Design.UITypeEditor ))
, System.Web.UI.CssClassProperty()
, System.ComponentModel.Bindable(true)]
public string CSSClass { get; set; }
[DefaultValue("")
, Editor(typeof(System.Web.UI.Design.ImageUrlEditor), typeof(System.Drawing.Design.UITypeEditor))
, System.Web.UI.UrlProperty("*.png;*.gif;*.jpg")
, System.ComponentModel.Bindable(true)]
public string ImageURL { get; set; }
[DefaultValue("")
, System.ComponentModel.Bindable(true)]
public bool somebool { get; set; }
Good Luck
Comments Perma Link