Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / December 2005

Tip: Looking for answers? Try searching our database.

Asp control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BlueSky - 23 Dec 2005 14:25 GMT
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!
Siva M - 23 Dec 2005 15:39 GMT
If you are using .NET 2.0, use <asp:BulletedList>.

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!
BlueSky - 23 Dec 2005 16:08 GMT
Thanks for your reply. But, I am using .NET 1.1.

> If you are using .NET 2.0, use <asp:BulletedList>.
>
[quoted text clipped - 8 lines]
>
> Thanks for any tip!
Peter Bromberg [C# MVP] - 23 Dec 2005 16:21 GMT
Here is the "BulletedList" from ASP.NET 2.0. Roll your own!

[DefaultProperty("BulletStyle"), SupportsEventValidation,
DefaultEvent("Click"),
Designer("System.Web.UI.Design.WebControls.BulletedListDesigner,
System.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"),
AspNetHostingPermission(SecurityAction.LinkDemand, Level=200),
AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=200)]
public class BulletedList : ListControl, IPostBackEventHandler
{
     // Events
     [WebSysDescription("BulletedList_OnClick"), WebCategory("Action")]
     public event BulletedListEventHandler Click;

     // Methods
     static BulletedList();
     public BulletedList();
     protected override void AddAttributesToRender(HtmlTextWriter writer);
     private string GetPostBackEventReference(string eventArgument);
     protected virtual void OnClick(BulletedListEventArgs e);
     protected virtual void RaisePostBackEvent(string eventArgument);
     protected internal override void Render(HtmlTextWriter writer);
     internal void RenderAccessKey(HtmlTextWriter writer, string AccessKey);
     protected virtual void RenderBulletText(ListItem item, int index,
HtmlTextWriter writer);
     protected internal override void RenderContents(HtmlTextWriter writer);
     void IPostBackEventHandler.RaisePostBackEvent(string eventArgument);

     // Properties
     [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
     public override bool AutoPostBack { get; set; }
     [UrlProperty, DefaultValue(""),
WebSysDescription("BulletedList_BulletImageUrl"),
Editor("System.Web.UI.Design.ImageUrlEditor, System.Design, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor)),
WebCategory("Appearance")]
     public virtual string BulletImageUrl { get; set; }
     [WebSysDescription("BulletedList_BulletStyle"), DefaultValue(0),
WebCategory("Appearance")]
     public virtual BulletStyle BulletStyle { get; set; }
     public override ControlCollection Controls { get; }
     [WebSysDescription("BulletedList_BulletedListDisplayMode"),
DefaultValue(0), WebCategory("Behavior")]
     public virtual BulletedListDisplayMode DisplayMode { get; set; }
     [DefaultValue(1), WebCategory("Appearance"),
WebSysDescription("BulletedList_FirstBulletNumber")]
     public virtual int FirstBulletNumber { get; set; }
     [Bindable(false), EditorBrowsable(EditorBrowsableState.Never)]
     public override int SelectedIndex { get; set; }
     [EditorBrowsable(EditorBrowsableState.Never)]
     public override ListItem SelectedItem { get; }
     [EditorBrowsable(EditorBrowsableState.Never), Bindable(false)]
     public override string SelectedValue { get; set; }
     protected override HtmlTextWriterTag TagKey { get; }
     internal HtmlTextWriterTag TagKeyInternal { get; }
     [WebSysDescription("BulletedList_Target"), WebCategory("Behavior"),
DefaultValue(""), TypeConverter(typeof(TargetConverter))]
     public virtual string Target { get; set; }
     [EditorBrowsable(EditorBrowsableState.Never)]
     public override string Text { get; set; }

     // Fields
     private bool _cachedIsEnabled;
     private int _firstItem;
     private int _itemCount;
     private static readonly object EventClick;
}

--Peter
Signature

Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com

> Thanks for your reply. But, I am using .NET 1.1.
>
[quoted text clipped - 10 lines]
> >
> > Thanks for any tip!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.