ASP.NET AutoPostBack Property
Complete ListControl Control Reference
Definition and Usage
The AutoPostBack property is used to set or return whether or not an
automatic post back occurs when the user selects an item in a list control.
If this property is set to TRUE the automatic post back is enabled, otherwise
FALSE. Default is FALSE.
Syntax
<asp:SomeListControl AutoPostBack="TRUE|FALSE" runat="server"/>
|
Example
The following example sets the AutoPostBack property to "True" for a RadioButtonList control:
<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>
|
Try-It-Yourself Demos
Set the AutoPostBack property of a RadioButton control to TRUE
Complete ListControl Control Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|