Skip to content
Related Articles

Related Articles

ASP Server.Execute Method

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 02 Mar, 2021

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 
GeeksFoeGeeks 
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!