using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; //using System.Drawing; //using System.Design; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;I commented out two using sections (added them) because I was getting some errors to Image class otherwise.
#region ArrowUpImageUrl [Description("The url of the image shown when a column is sorted in ascending order."), DefaultValue(""), Themeable(true), Category("Appearance")] [Editor(typeof(System.Web.UI.Design.ImageUrlEditor), typeof(System.Drawing.Design.UITypeEditor))] public string ArrowUpImageUrl { get { string str = ViewState["ArrowUpImageUrl"] as string; if (str == null) return string.Empty; else return str; } set { ViewState["ArrowUpImageUrl"] = value; } } protected virtual string ArrowUpImageUrlInternal { get { if (string.IsNullOrEmpty(ArrowUpImageUrl)) return Page.ClientScript.GetWebResourceUrl(this.GetType(), "skmControls2.ArrowUp.gif"); else return ArrowUpImageUrl; } } #endregion>>
>[Category("Appearance")] >[Browsable(true)] >[Bindable(false)] >[DefaultValue("")] >[PersistenceMode(PersistenceMode.Attribute)] >[Editor("System.Web.UI.Design.ImageUrlEditor", "System.Drawing.Design.UITypeEditor")] >public string PropertyNameHere >{ > get {} // Whatever > set {} >} >