ScriptReference.IgnoreScriptPath Property

Definition

Caution

This property is obsolete. Instead of using ScriptManager.ScriptPath, set the Path property on each individual ScriptReference.

Gets or sets a value that indicates whether the ScriptPath property is included in the URL when you register a client script file from a resource.

C#
public bool IgnoreScriptPath { get; set; }
C#
[System.Obsolete("This property is obsolete. Instead of using ScriptManager.ScriptPath, set the Path property on each individual ScriptReference.")]
public bool IgnoreScriptPath { get; set; }

Property Value

true if the script path is not used when you register the client script; otherwise, false.

Attributes

Remarks

You set IgnoreScriptPath to true when you want to register a client script file without including the ScriptPath value in the URL of the script file.

Applies to

Product Versions (Obsolete)
.NET Framework 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)