ASP.Net/Server/Server Execute
Версия от 15:30, 26 мая 2010; (обсуждение)
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>