ASP Server.Execute Method

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("Beginner For Beginner!<br>")
%>

GFG.asp 

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

Output

Welcome to 
w3wiki