webcustomcontrols in .net..VS 2003..
please give me more details of its use and how to do it?
in detail m a beginner...
i like to add new listcontrol(like a list which contains images and name of image)..
like checkboxlist(checkboxes and label)....help me
Loading

Roei BarRank #1,271 · 1.4K reputationPosted Aug 12, 2009, 12:53 AM EDT
[ParseChildren(false), AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ImageListItem : " href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.IEquatable%3C%3E">IEquatableImageListItem> { // Fields private string _ImageUrl; private string _Key; private string _Tag; private string _Text; private string _Tooltip; // Methods public ImageListItem() { this._Key = Guid.Empty.ToString(); this._ImageUrl = "spacer.gif"; this._Text = "text"; this._Tooltip = "tooltip"; } public ImageListItem(string key, string imageUrl, string text) : this(key, imageUrl, text, text, null) { } public ImageListItem(string key, string imageUrl, string text, string tooltip) : this(key, imageUrl, text, tooltip, null) { } public ImageListItem(string key, string imageUrl, string text, string tooltip, string tag) { if (string.IsNullOrEmpty(key)) { throw new ArgumentNullException("key"); } if (string.IsNullOrEmpty(imageUrl)) { throw new ArgumentNullException("imageUrl"); } if (string.IsNullOrEmpty(text)) { throw new ArgumentNullException("text"); } if (string.IsNullOrEmpty(tooltip)) { throw new ArgumentNullException("tooltip"); } this._Key = key; this._ImageUrl = imageUrl; this._Text = text; this._Tooltip = tooltip; this._Tag = tag; } public bool Equals(ImageListItem other) { return ((this.Key == other.Key) || ((this.Text == other.Text) && (this.Tag == other.Tag))); } // Properties public string ImageUrl { get { return this._ImageUrl; } set { if (string.IsNullOrEmpty(value)) { throw new ArgumentNullException("value"); } this._ImageUrl = value; } } public string Key { get { return this._Key; } set { if (string.IsNullOrEmpty(value)) { throw new ArgumentNullException("value"); } this._Key = value; } } public string Tag { get { return this._Tag; } set { this._Tag = value; } } public string Text { get { return this._Text; } set { if (string.IsNullOrEmpty(value)) { throw new ArgumentNullException("value"); } this._Text = value; } } public string Tooltip { get { return this._Tooltip; } set { if (string.IsNullOrEmpty(value)) { throw new ArgumentNullException("value"); } this._Tooltip = value; } } }if you like this dont forget ti mark the "Accepted Answer"... :-)
Master BillaRank #2,229 · 630 reputationPosted Aug 12, 2009, 1:09 AM EDT
here is step by step tutorial to create custom control in asp.net 1.1
http://msdn.microsoft.com/en-us/library/ms366538.aspx
thank you