ASP Yürütme Yöntemi
❮ Komple Sunucu Nesnesi Referansı
Execute yöntemi, bir ASP dosyasını başka bir ASP dosyasının içinden yürütür. Çağrılan .asp dosyasını yürüttükten sonra kontrol, orijinal .asp dosyasına döndürülür.
Sözdizimi
Server.Execute(path)
Parameter | Description |
---|---|
path | Required. The location of the ASP file to execute |
Örnek
File1.asp:
<%
response.write("I am in File 1!<br>")
Server.Execute("file2.asp")
response.write("I am back in File 1!")
%>
File2.asp:
<%
response.write("I am in File 2!<br>")
%>
Output:
I am in File 1!
I am in File 2!
I am back in File 1!
Ayrıca Server.Execute ve Server.Transfer yöntemleri arasındaki farkı görmek için Server.Transfer yöntemine bakın.
❮ Komple Sunucu Nesnesi Referansı