Enabling Automatic Postback

You can determine whether  C1Slider automatically posts back to the server by using the AutoPostBack property. By default, the AutoPostBack property is set to False, meaning that the C1Slider control does not automatically post back to the server; to force the C1Slider control to post back to the server, just set AutoPostBack to True. This topic assumes that you have created an AJAX-enabled ASP.NET project that contains a ScriptManager control (see Creating an AJAX-Enabled ASP.NET Project) and a C1Slider control.

In Design View

Complete the following steps:

1.   Right-click the C1Slider control to open its context menu and then select Properties from the list.

      The Properties window opens with C1Slider's properties in focus.

2.   Locate the AutoPostBack property, click its drop-down arrow, and select True.

In Source View

To enable automatic postback, add AutoPostBack="True" to the <cc1:C1Slider> tags so that the markup resembles the following:

 

 <cc1:C1Slider ID="C1Slider1" runat="server" AutoPostBack="True">

In Code

Complete the following steps:

1.   In Design view, double-click the page to enter the code editor.

2.   Import the following namespace into your project:

      Visual Basic

      C# 

3.   Set the current value of the C1Slider control by adding the following code to the Page_Load event.

      Visual Basic

      C# 

4.   Save the project and open it in a Studio for iPhone-compatible browser to execute the program.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.