YouTip LogoYouTip

Prop Webcontrol Bulletedlist Firstbulletnumber

ASP.NET BulletedList FirstBulletNumber Property body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; background-color: #f8f9fa; } .container { margin-top: 20px; } h1, h2, h3 { color: #333; } code { background-color: #e8e8e8; border-radius: 4px; padding: 2px 6px; font-family: 'Consolas', 'Courier New', monospace; font-size: 14px; } pre { background-color: #f8f9fa; border: 1px solid #ddd; border-radius: 6px; padding: 15px; overflow-x: auto; font-size: 14px; } .sidebar { background-color: #f1f1f1; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); margin-bottom: 20px; } .sidebar ul { list-style-type: none; padding-left: 0; } .sidebar li { margin-bottom: 10px; } .sidebar a { text-decoration: none; color: #007bff; } .sidebar a:hover { text-decoration: underline; }

ASP.NET BulletedList FirstBulletNumber Property

-- Learning not just technology, but also dreams!

ASP.NET BulletedList FirstBulletNumber Property

The FirstBulletNumber property is used to get or set the starting number of the bullet points in a BulletedList control.

Syntax

public int FirstBulletNumber { get; set; }

Property Value

An integer value representing the first bullet point number in the list. The default value is 1.

Example

This example demonstrates how to set the starting number of bullets in a BulletedList control using the FirstBulletNumber property.

<%@ Page Language="C#" %>
<html>
<body>
    <form runat="server">
        <asp:BulletedList ID="BulletedList1" runat="server" 
                         BulletStyle="NumberCircle" 
                         FirstBulletNumber="5" 
                         DisplayMode="List">
            <asp:ListItem Text="Item 1" />
            <asp:ListItem Text="Item 2" />
            <asp:ListItem Text="Item 3" />
        </asp:BulletedList>
    </form>
</body>
</html>

In this example, the BulletedList will display bullet points starting from number 5 instead of 1.

Notes

  • This property only affects the display order of bullet numbers and does not change the actual list items.
  • If FirstBulletNumber is set to a negative value, it will be ignored and the default value (1) will be used.
  • Valid values are integers greater than or equal to 1.

See Also

© 2024 . All rights reserved.
← Prop Webcontrol Bulletedlist TProp Webcontrol Bulletedlist D β†’