<%@ Page Language="VB" %>
<html>
<head>
<title>Executing Another Page and Returning its Output</title>
<script runat="server">
Sub Execute()
Dim Url As String = "CreateObject.aspx"
Dim sw As New System.IO.StringWriter
Server.Execute(Url, sw)
Response.Write("Request output:<br/><br/>" & sw.ToString())
End Sub
</script>
</head>
<body>
<% Execute %>
</body>
</html>
|