ComponentOne Accordion for ASP.NET AJAX: Accordion for ASP.NET AJAX Task-Based Help > Using Automatic Posts Back to the Server

Using Automatic Posts Back to the Server

You can have C1Accordion perform automatic posts back to the server each time a user interacts with the C1Accordion control. To do this, set the AutoPostBack property.

To set the AutoPostBack property using the C1Accordion Tasks menu:

1.   Click the C1Accordion smart tag to open the C1Accordion Tasks menu.

2.   Select Edit Panes. The Accordion Designer Form appears.

3.   Select C1Accordion1 on the Edit tab.

4.   Set the AutoPostBack property to True in the properties pane. If the properties are categorized, you will find it under the Behavior category.

To set the AutoPostBack property programmatically:

Add the following code to your form:

      Visual Basic

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        C1Accordion1.AutoPostBack = True

End Sub

      C#

protected void Page_Load(object sender, EventArgs e)

    {

        C1Accordion1.AutoPostBack = "True";

 

    }


Send comments about this topic to ComponentOne.
Copyright ©ComponentOne LLC. All rights reserved.