Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

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.

Syntax

CSharp

[DefaultValueAttribute(false)]
[CategoryAttribute("Behavior")]
public bool InlineScript { get; set; }

VisualBasic

<DefaultValueAttribute(False)> _
<CategoryAttribute("Behavior")> _
Public Property InlineScript As Boolean

ManagedCPlusPlus

[DefaultValueAttribute(false)]
[CategoryAttribute(L"Behavior")]
public:
bool InlineScript {
	bool get ();
	void set (bool value);
}

JSharp

/** @property */
/** @property */

Value

Return Value

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.

Remarks

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.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)