ASP.NET AutoPostBack property
Definition and Usage
AutoPostBack property sets or returns when a user selects an item in the list control, whether or not occur automatically back to the operation of the server.
If the property is set to TRUE, enable automatic return, otherwise FALSE. The default is FALSE.
grammar
<asp:SomeListControlAutoPostBack="TRUE|FALSE" runat="server"/>
Examples
The following examples set the AutoPostBack property RadioButtonList control to "TRUE":
<script runat="server">
Sub Change(obj As Object, e As EventArgs)
Response.Write("You selected " & rb1.SelectedItem.Text)
End Sub
</script>
<form runat=server>
<asp:RadioButtonList id="rb1" AutoPostBack="True"
runat="server" OnSelectedIndexChanged="Change">
<asp:ListItem Text="Item 1" />
<asp:ListItem Text="Item 2" />
</asp:RadioButtonList>
</form>
Sub Change(obj As Object, e As EventArgs)
Response.Write("You selected " & rb1.SelectedItem.Text)
End Sub
</script>
<form runat=server>
<asp:RadioButtonList id="rb1" AutoPostBack="True"
runat="server" OnSelectedIndexChanged="Change">
<asp:ListItem Text="Item 1" />
<asp:ListItem Text="Item 2" />
</asp:RadioButtonList>
</form>
The demonstration >>
ListControl control Reference Manual