ASP Execute Attribute
Definition and Usage
Execute method executes an ASP file from another ASP file. After the called .asp file is executed, control returns to the original .asp file.
Syntax
Server.Execute(path)
Parameter | Description |
---|---|
path | কী এসপি ফাইল এক্সিকিউট করতে হবে। |
প্রয়োজন
File1.asp:
<% response.write("আমি ফাইল 1-তে আছি!<br />") Server.Execute("file2.asp") response.write("আমি ফাইল 1-তে ফিরেছি!") %>
File2.asp:
<% response.write("আমি ফাইল 2-তে আছি!<br />") %>
আউটপুট:
আমি ফাইল 1-এ আছি! আমি ফাইল 2-এ আছি! আমি ফাইল 1-এ ফিরে এসেছি!
দেখুন Server.Transfer পদ্ধতি, সার্ভার.Execute এবং Server.Transfer পদ্ধতির পার্থক্য জানুন