Sitecore 5.0 API

Context.ClientPage Property

Gets the current Sheer client page object.

[Visual Basic]
Public Shared Property ClientPage As ClientPage
[C#]
public static Web.UI.Sheer.ClientPage ClientPage {get; set;}

Remarks

The ClientPage property provides access to the Sheer framework. The ClientPage represents the ASPX page that handles the current request and inherits from Page.

The ClientPage does not refer to the CodeBeside object, but the CodeBeside object can access through the CodeBeside property.

If the current page does not inherit from the Sitecore.Web.UI.Sheer.ClientPage class, this property is null.

Example

This example displayes a "Hello World" alert box on the client.

public string HelloWorld() {
  Sitecore.Context.ClientPage.ClientResponse.Alert("Hellow World");
}

See Also

Context Class | Sitecore Namespace