Gets the current Sheer client page object.
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.
This example displayes a "Hello World" alert box on the client.
public string HelloWorld() {
Sitecore.Context.ClientPage.ClientResponse.Alert("Hellow World");
}
Context Class | Sitecore Namespace