Open In App

ASP Server.Execute Method

Last Updated : 18 Apr, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

The ASP Server.Execute Method is used to execute various ASP scripts from the ASP File. This method is quite similar to the procedure call approach in some programming languages. 

Syntax:

Server.Execute(path) 

Parameter Values 

  • Path: It stores a string value that represents the location of the .asp file to execute.

Example Code: 

Sudo.asp 

<%
response.write("Geeks For Geeks!<br>")
%>

GFG.asp 

<%
response.write("Welcome to <br>")
Server.Execute("file2.asp")
%>

Output

Welcome to 
GeeksForGeeks 


Next Article
Article Tags :

Similar Reads