ASP.Net/Server/Server Execute
Executing Another Page (file) and Returning (VB.net)
<source lang="csharp">
<%@ Page Language="VB" %> <html> <head>
<title>Executing Another Page and Returning its Output</title> <script runat="server"> Sub Execute() Dim sw As New System.IO.StringWriter Server.Execute("file.txt", sw) Response.Write("Request output:
" & sw.ToString()) End Sub </script>
</head> <body> <% Execute %> </body> </html>
</source>