ScriptManager.ScriptPath 속성

정의

주의

This property is obsolete. Set the Path property on each individual ScriptReference instead.

ASP.NET AJAX 및 사용자 지정 스크립트 파일의 경로를 빌드하는 데 사용되는 위치의 루트 경로를 가져오거나 설정합니다.

public:
 property System::String ^ ScriptPath { System::String ^ get(); void set(System::String ^ value); };
public string ScriptPath { get; set; }
[System.Obsolete("This property is obsolete. Set the Path property on each individual ScriptReference instead.")]
public string ScriptPath { get; set; }
member this.ScriptPath : string with get, set
[<System.Obsolete("This property is obsolete. Set the Path property on each individual ScriptReference instead.")>]
member this.ScriptPath : string with get, set
Public Property ScriptPath As String

속성 값

String

스크립트 파일이 저장되는 위치입니다. 기본값은 빈 문자열("")이며 상대 경로로 해석됩니다.

특성

설명

ScriptPath 속성을 사용 하면 상대 절대를 지정할 수 있습니다 또는 페이지의 모든 스크립트에 대 한 애플리케이션 상대 URL을 차단 합니다. 여기에는 현재 ScriptManager 인스턴스에 등록된 사용자 지정 및 타사 스크립트 블록이 포함됩니다. 이 ScriptPath 속성은 일반적으로 페이지에서 요소의 ScriptManager 특성으로 선언적으로 설정되지만 코드에서도 설정할 수 있습니다.

컬렉션의 path 개체에 Path 대해 ScriptReference 특성 또는 속성이 Scripts 설정된 경우 경로 값은 해당 ScriptReference 인스턴스의 값을 재정의 ScriptPath 합니다.

값이 지정되지 않은 Path 경우 컨트롤은 속성에 정의된 ScriptPath 디렉터리를 검색하고 해당 또는 Assembly 속성으로 스크립트 참조를 Name 확인 ScriptManager 합니다.

적용 대상