System.Web.HttpResponseSubstitutionCallback Delegate

Represents the method that handles post-cache substitution.

Syntax

public delegate string HttpResponseSubstitutionCallback (HttpContext context)

Parameters

context
Documentation for this section has not yet been entered.

Value

Documentation for this section has not yet been entered.

Remarks

The System.Web.HttpResponseSubstitutionCallback delegate, in combination with the HttpResponse.WriteSubstitution(HttpResponseSubstitutionCallback) method, is used for rendering post-cache content for the System.Web.UI.WebControls.Substitution and System.Web.UI.WebControls.AdRotator controls.

For the System.Web.UI.WebControls.Substitution control, use the System.Web.UI.WebControls.Substitution.MethodName property to specify the name of the callback method to invoke when the System.Web.UI.WebControls.Substitution control executes. The callback method that you specify must be a static method on the page or on the user control that contains the System.Web.UI.WebControls.Substitution control. The signature for the callback method must match the signature for an System.Web.HttpResponseSubstitutionCallback delegate that takes an System.Web.HttpContext parameter and returns a string.

For the System.Web.UI.WebControls.AdRotator control, rendering is independent of the page caching unless an event handler is provided for the System.Web.UI.WebControls.AdRotator.AdCreated event. If no System.Web.UI.WebControls.AdRotator.AdCreated event handler is present, post-cache substitution is used to render the System.Web.UI.WebControls.AdRotator content.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0