ComponentOne TabStrip for ASP.NET AJAX: TabStrip for ASP.NET AJAX Task-Based Help > Setting C1TabStrip Behaviors > Setting C1TabStrip's Automatic Postback

Setting C1TabStrip's Automatic Postback

Using the AutoPostBack property, you can choose whether or not the C1TabStrip control will automatically post back to the server between tab clicks. By default, the AutoPostBack property is set to False, meaning that the C1MultiPage control does not automatically post back to the server. However, you can easily set up the C1TabStrip control to post back to the server by setting this property to True.

In Design View

Complete the following steps:

1.   Click C1TabStrip's smart tag () to open the C1TabStrip Tasks menu and then select TabStrip Designer.

      The C1TabStrip Designer Form appears.

2.   In treeview, select C1TabStrip1 to reveal its list of properties.

3.   Locate AutoPostBack and set it to True.

4.   Press OK to close the C1TabStrip Designer Form.

In Source View

In Source view add AutoPostBack="True" to the <cc1:C1TabStrip> tag so it appears similar to the following:

 

<cc1:C1TabStrip ID="C1TabStrip1" runat="server" AutoPostBack="True">

In Code

To set AutoPostBack, add the following code to the Page_Load event:

      Visual Basic

C1TabStrip1.AutoPostBack = True

      C#

C1TabStrip1.AutoPostBack = true;


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