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!

LivePlaceHolder ASP.NET Server Control Information

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

[View LiveControl Demo]

The LivePlaceHolder control contained with the LiveControls for ASP.NET suite displays dynamically created WebControls on the browser without refreshing the page.

 

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 a LivePlaceHolder control.

<cc1:LivePlaceHolder id="LivePlaceHolder1" runat="server"></cc1:LivePlaceHolder>

Code-Behind Example

The following code demonstrates dynamically adding a control to the LivePlaceHolder in a button click event.

private void LiveButton1_Click(object sender, System.EventArgs e)
{
   // Dynamically create a LiveLabel
   LiveLabel label = new LiveLabel();
   label.ID = "mylabel";
   label.Text = "Hello World";
   label.BackColor = Color.Red;
   
   // Add it to the PlaceHolder. It will be displayed in the browser without refreshing the page
   LivePlaceHolder1.Controls.Add(label);
}