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

LiveTextBox ASP.NET Server Control Information

This page includes information about the LiveTextBox Server Control, which is included in PowerWEB LiveControls for ASP.NET:

[View LiveControl Demo]

The LiveTextBox server control enables the addition of advanced text input functionality into a webpage. The LiveTextBox control (like all LiveControls) replaces the standard ASP.NET postback approach with a remote scripted callback, allowing the textbox to send it's data to the server, and be updated from the server, without refreshing the page or disrupting the user's interactions with the page. This enables developers to build web applications with unprecedented response and fluidity. For example, to create a simple chat application, add a LiveTextBox (for the user to input their chat message), a LiveButton (for the user to send their chat message), and a LiveLabel (to display the chat room transcript) and write a few lines of server code tying the controls together. In addition, set the AutoPostBack property to true to have the LiveTextBox initiate the callback (when the user tabs out of the field) instead of the button. For another useful feature, implement the LiveTextBox.KeyDown event to have the LiveTextBox callback with it's new data on each key press.

 

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 LiveTextBox control.

<cc1:LiveTextBox id="LiveTextBox1" runat="server"></cc1:LiveTextBox>

Code-Behind Example

The following code demonstrates getting the text of the LiveTextBox and displaying the text on a label.

private void LiveButton1_Click(object sender, System.EventArgs e)
{
   LiveLabel1.Text = LiveTextBox1.Text;
}