Bagikan melalui


ScriptManager.ScriptPath Properti

Definisi

Perhatian

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

Mendapatkan atau mengatur jalur akar lokasi yang digunakan untuk membangun jalur ke ASP.NET Ajax dan file skrip kustom.

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

Nilai Properti

Lokasi tempat file skrip disimpan. Nilai default adalah string kosong (""), yang ditafsirkan sebagai jalur relatif.

Atribut

Keterangan

Properti ScriptPath memungkinkan Anda menentukan URL absolut, relatif, atau relatif aplikasi untuk semua blok skrip di halaman. Ini termasuk blok skrip kustom dan pihak ketiga yang terdaftar dengan instans saat ini ScriptManager . Properti ScriptPath biasanya ditetapkan secara deklaratif sebagai atribut ScriptManager elemen di halaman, tetapi juga dapat diatur dalam kode.

path Jika atribut atau Path properti diatur untuk ScriptReference objek dalam Scripts koleksi, nilai jalur akan mengambil alih nilai untuk ScriptReference instans tersebutScriptPath.

Jika tidak ada Path nilai yang ditentukan, ScriptManager kontrol akan mencari direktori yang ditentukan oleh ScriptPath properti dan menyelesaikan referensi skrip berdasarkan properti atau Assembly propertinyaName.

Berlaku untuk