Version: 1.6.1.3
Ajax technology accesses server-side power using callbacks without reloading the browser page. Easily create Rich Internet Applications without writing JavaScript!

LiveCheckBox ASP.NET Server Control Information

LiveRadioButton ASP.NET Server Control Information

LiveCheckBoxList ASP.NET Server Control Information

LiveRadioButtonList ASP.NET Server Control Information

This page includes information about the LiveCheckBox, LiveRadioButton, LiveCheckBoxList, and LiveRadioButtonList Server Controls, which are included in PowerWEB LiveControls for ASP.NET:

[View LiveControl Demo]

The LiveCheckBox server control (representing an HTML checkbox) and the LiveRadioButton server control (representing an HTML radio button) make it possible to communicate with a webserver and update client-side elements when either of these elements are clicked, without "refreshing" the page.

The "list" versions of these controls (LiveCheckBoxList and LiveRadioButtonList) are server controls which can be bound to a datasource, producing multiple instances of checkboxes and radio buttons which can raise callbacks to the server.

Remember! Any LiveControl which raises a callback to the server (such as LiveCheckBox or LiveRadioButton) raises a server event within which ANY client-side element can be visually updated without refreshing the page!

The LiveCheckBox and LiveRadioButton controls have the following features:

  • Cross-browser compatible, no plugins, downloads, or security warnings.
  • Uses same interface as the standard ASP.NET CheckBox and RadioButton, so there is no learning curve.
  • Use LiveRadioButton with LiveDataGrid to display a column of radio buttons which select the row when clicked.
  • Use LiveCheckBox with LiveDataGrid to display a column of checkboxes which display (and allow editing of) boolean database data.
  • Bind LiveRadioButtonList or LiveCheckBox list to a datasource to easily produce lists of "callback-enabled" checkboxes and radiobuttons.

Some example uses for LiveCheckBox and LiveRadioButton:

  • Use in place of ANY standard ASP.NET CheckBox or RadioButton to replace the standard postback with a much "smoother" callback.
  • Use anywhere you need to send data to the server (and update the client) without refreshing the page.
  • Create a live "poll" which is updated in real-time without refreshing the browser.
  • Create a web-quiz.
  • Create a form for a configurable product (such as Dell's "configure your computer" form) which updates the price as various options are selected/deselected.

Browser Compatibility

LiveControls have been tested and are fully "callback-compatible" in the following browsers:

  • Microsoft Internet Explorer 5.0+ for Windows
  • Microsoft Interner Explorer 5.0+ for Macintosh
  • Netscape 7.1+ for Windows
  • Netscape 7.1+ for Macintosh OS X
  • Mozilla 1.3+ for Windows
  • Mozilla 1.3+ for Macintosh OS X
  • Firefox for Windows
  • Firefox for Macintosh OS X
  • Camino for Macintosh OS X
  • Konqueror based engines
  • Galeon
  • Opera 5.0+

If a browser which is not compatible accesses a page containing LiveControls, the controls will fall back to the standard ASP.NET functionality. For example, a LiveButton issues a transparent callback when clicked. If on a non-compatible page, the button will still be displayed, but will cause a standard postback when clicked.

Server Tag Example

The following tags demonstrate typical settings for initializing a LiveCheckBox and LiveRadioButton.

<cc1:LiveCheckBox id="LiveCheckBox1" runat="server" AutoPostBack="True"></cc1:LiveCheckBox>
<cc1:LiveRadioButton id="LiveRadioButton1" runat="server" AutoPostBack="True"></cc1:LiveRadioButton>

Code-Behind Example

This demonstrates handling the LiveCheckBox.SelectedIndexChanged event

// SelectedIndexChanged event is raised when the LiveCheckBox is checked.
private void LiveCheckBox1_CheckedChanged(object sender, System.EventArgs e)
{
   LiveLabel1.Text = "CheckBox checked = " + LiveCheckBox1.Checked.ToString();
}