Open In App

ASP Server.Execute Method

Last Updated : 18 Apr, 2023
Improve
Improve
Like Article
Like
Save
Share
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 

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads