473,325 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Asp control

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!

Dec 23 '05 #1
3 6839
If you are using .NET 2.0, use <asp:BulletedList>.

"BlueSky" <se********@worldsavings.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.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!
Dec 23 '05 #2
Thanks for your reply. But, I am using .NET 1.1.

Siva M wrote:
If you are using .NET 2.0, use <asp:BulletedList>.

"BlueSky" <se********@worldsavings.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.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!


Dec 23 '05 #3
Here is the "BulletedList" from ASP.NET 2.0. Roll your own!

[DefaultProperty("BulletStyle"), SupportsEventValidation,
DefaultEvent("Click"),
Designer("System.Web.UI.Design.WebControls.Bullete dListDesigner,
System.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"),
AspNetHostingPermission(SecurityAction.LinkDemand, Level=200),
AspNetHostingPermission(SecurityAction.Inheritance Demand, 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_BulletedListDispla yMode"),
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
--
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:BulletedList>.

"BlueSky" <se********@worldsavings.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.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!


Dec 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bruce Rusk | last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what may be a slight bug in it. I have a lot of non-Western language (Chinese) text in my RTF field, and such records get...
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
4
by: gsb58 | last post by:
Hi! On a form I have a calendar. The form is rezised to 1024x768 (Don't worry - this is a training case) when loaded. Now I want to center the calendar on the form so that its edges are...
5
by: paul.hester | last post by:
Hi all, I have a custom control with an overridden Render method. Inside this method I'm rendering each control in its collection using their RenderControl method. However, I'm running into a...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.