473,770 Members | 2,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6857
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!
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: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!


Dec 23 '05 #3
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!


Dec 23 '05 #4

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

Similar topics

6
3417
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 sized strangely using the .RTFHeight property of the control. Specifically, lines of text get cut off the bottom of the control when I use the code provided in the sample report on the lebans.com site. It seems that when there is Chinese text,...
6
11300
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" Src="WebControls/Header.ascx" %> The web user control contains the following server controls
2
3629
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
5650
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 client-side HTML, CSS, etc. What I want to do is somehow insert a *server control* into the , then set the server control's properties at runtime.
5
3595
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 that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
2
4924
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 being updated by some other process through remoting. When the page loads, I init the tree, and in my browser I can see the initialized tree. The problem is that every time that I receive update to tree from the remote process,
4
3346
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 equally far from the upper, right, left and bottom borders of the form. I understand I must use the location property, am I right?
5
2343
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 problem in this scenario: <myprefix:mycontrol runat="server"> <%= SomeVariable %> </myprefix:mycontrol>
14
14658
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 so I get the ObjectDataSource. No problem ..... ObjectDataSource src = .... //is ok i have it
15
6521
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 accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
0
10237
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.