Export (0) Print
Expand All

ServiceReference::InlineScript Property

Gets or sets a value that indicates whether the proxy generation script is included in the page as an inline script block or is obtained by a separate request.

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

public:
virtual property bool InlineScript {
	bool get ();
	void set (bool value);
}

Property Value

Type: System::Boolean
true if the proxy generation script is included as an inline script block in the page; false if the proxy generation script is obtained by a separate request. The default is false.

When the InlineScript property is not declared, the default value is false.

When InlineScript is set to false, the script for generating the ECMAScript (JavaScript) proxies is downloaded as a separate script file by an additional request to the server. If you use browser caching, this option is helpful when multiple Web pages use the same service reference.

When InlineScript is set to true, the proxy generation script is included as an inline script block in the page. This can improve server performance by reducing the number of network requests, especially if there are many service references in the page and other pages do not reference the same services. In addition, the Path property must be set to a relative path when InlineScript is set to true.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft