Executing Another Page (file) and Returning (VB.net)
<%@ 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:<br/><br/>" & sw.ToString())
End Sub
</script>
</head>
<body>
<% Execute %>
</body>
</html>
Related examples in the same category