This documentation is archived and is not being maintained.

BulletedList.AutoPostBack Property

Gets or sets the value of the AutoPostBack property for the base class.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public override bool AutoPostBack { get; set; }
<asp:BulletedList AutoPostBack="True|False" />

Property Value

Type: System.Boolean


An attempt was made to assign a value to the AutoPostBack.

The AutoPostBack property is inherited from the ListControl class and is not applicable to the BulletedList control. Do not assign a value to the AutoPostBack property. If you do assign a value to the AutoPostBack, a NotSupportedException exception is thrown.

The following code example demonstrates that the value of the AutoPostBack property is always false for the BulletedList control and therefore is not applicable to this class.

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" >
<head runat="server">
    <title>AutoPostBack Property Example</title>
<script language="c#" runat="server">

        void Page_Load(Object sender, EventArgs e)
            // Get the value of AutoPostBack for this bulleted list.
            bool value;
            value = ItemsBulletedList.AutoPostBack;

            // This property is not applicable to the BulletedList class.
            // This message will never be displayed.
                Message.Text = "The value of the AutoPostBack property is True.";

            // The default AutoPostBack value inherited from ListControl is False.
            // This message will always be displayed.
                Message.Text = "The value of the AutoPostBack property is " + value.ToString() + "."
                    + "This property is inherited by the ListControl class."
                    + "It is not applicable to the BulletedList class.";



    <h3>AutoPostBack Property Example</h3>

    <form id="form1" runat="server">

        <asp:BulletedList id="ItemsBulletedList" 
                <asp:ListItem Value="0">The first list item.</asp:ListItem>
            <asp:ListItem Value="1">The second list item.</asp:ListItem>
            <asp:ListItem Value="2">The third list item.</asp:ListItem>
            <asp:ListItem Value="3">The fourth list item.</asp:ListItem>

    <asp:Label id="Message" 



.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.