PerformSubstitution Property

WebResourceAttribute::PerformSubstitution Property


Gets or sets a Boolean value that determines whether, during processing of the embedded resource referenced by the WebResourceAttribute class, other Web resource URLs are parsed and replaced with the full path to the resource.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

property bool PerformSubstitution {
	bool get();
	void set(bool value);

Property Value

Type: System::Boolean

true if embedded resources are resolved during processing of the resource; otherwise, false. The default is false.

When a resource is streamed from the assembly to the response, references to other Web resources in the embedded resources can be resolved at this time, if the PerformSubstitution property is set to true.

The following code example demonstrates how to query the value of the PerformSubstitution property. In this example, the WebResourceAttribute attribute of the HTML file Help.htm is defined with the PerformSubstitution property set to true.

This code example is part of a larger example provided for the WebResourceAttribute class.

No code example is currently available or this language may not be supported.

An example of an HTML Web resource that could be used in this example is shown next. Note that the WebResource syntax is used when you set the PerformSubstitution property to true for the resource.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">

<html xmlns="" >


<title>Included Help Page</title>




<img alt="help image" src=<% = WebResource("image1.jpg") %> />

Included help file.




.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft