Here is the "BulletedLi st" from ASP.NET 2.0. Roll your own!
[DefaultProperty ("BulletStyle") , SupportsEventVa lidation,
DefaultEvent("C lick"),
Designer("Syste m.Web.UI.Design .WebControls.Bu lletedListDesig ner,
System.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a"),
AspNetHostingPe rmission(Securi tyAction.LinkDe mand, Level=200),
AspNetHostingPe rmission(Securi tyAction.Inheri tanceDemand, Level=200)]
public class BulletedList : ListControl, IPostBackEventH andler
{
// Events
[WebSysDescripti on("BulletedLis t_OnClick"), WebCategory("Ac tion")]
public event BulletedListEve ntHandler Click;
// Methods
static BulletedList();
public BulletedList();
protected override void AddAttributesTo Render(HtmlText Writer writer);
private string GetPostBackEven tReference(stri ng eventArgument);
protected virtual void OnClick(Bullete dListEventArgs e);
protected virtual void RaisePostBackEv ent(string eventArgument);
protected internal override void Render(HtmlText Writer writer);
internal void RenderAccessKey (HtmlTextWriter writer, string AccessKey);
protected virtual void RenderBulletTex t(ListItem item, int index,
HtmlTextWriter writer);
protected internal override void RenderContents( HtmlTextWriter writer);
void IPostBackEventH andler.RaisePos tBackEvent(stri ng eventArgument);
// Properties
[Browsable(false ), EditorBrowsable (EditorBrowsabl eState.Never)]
public override bool AutoPostBack { get; set; }
[UrlProperty, DefaultValue("" ),
WebSysDescripti on("BulletedLis t_BulletImageUr l"),
Editor("System. Web.UI.Design.I mageUrlEditor, System.Design, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a", typeof(UITypeEd itor)),
WebCategory("Ap pearance")]
public virtual string BulletImageUrl { get; set; }
[WebSysDescripti on("BulletedLis t_BulletStyle") , DefaultValue(0) ,
WebCategory("Ap pearance")]
public virtual BulletStyle BulletStyle { get; set; }
public override ControlCollecti on Controls { get; }
[WebSysDescripti on("BulletedLis t_BulletedListD isplayMode"),
DefaultValue(0) , WebCategory("Be havior")]
public virtual BulletedListDis playMode DisplayMode { get; set; }
[DefaultValue(1) , WebCategory("Ap pearance"),
WebSysDescripti on("BulletedLis t_FirstBulletNu mber")]
public virtual int FirstBulletNumb er { get; set; }
[Bindable(false) , EditorBrowsable (EditorBrowsabl eState.Never)]
public override int SelectedIndex { get; set; }
[EditorBrowsable (EditorBrowsabl eState.Never)]
public override ListItem SelectedItem { get; }
[EditorBrowsable (EditorBrowsabl eState.Never), Bindable(false)]
public override string SelectedValue { get; set; }
protected override HtmlTextWriterT ag TagKey { get; }
internal HtmlTextWriterT ag TagKeyInternal { get; }
[WebSysDescripti on("BulletedLis t_Target"), WebCategory("Be havior"),
DefaultValue("" ), TypeConverter(t ypeof(TargetCon verter))]
public virtual string Target { get; set; }
[EditorBrowsable (EditorBrowsabl eState.Never)]
public override string Text { get; set; }
// Fields
private bool _cachedIsEnable d;
private int _firstItem;
private int _itemCount;
private static readonly object EventClick;
}
--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe .com
UnBlog:
http://petesbloggerama .blogspot.com
"BlueSky" wrote:
Thanks for your reply. But, I am using .NET 1.1.
Siva M wrote: If you are using .NET 2.0, use <asp:BulletedLi st>.
"BlueSky" <se********@wor ldsavings.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
Hi All,
Is there an equivalent html control or asp control in .NET that does
the following -
<ul>
<li>list item1</li>
<li>list item2</li>
<li>list item3</li>
</ul>
Thanks for any tip!