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 bool InlineScript { get; set; }

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5

Community Additions

ADD
Show:
© 2015 Microsoft