Mega Code Archive

 
Categories / ASP.Net / Response
 

Writing a file to output (VB net)

<%@ Page Language="vb" %> <html>    <head>       <title>Writing a file to output in ASP.NET</title>       <script runat="server">          Sub Page_Load()             Response.WriteFile(MapPath("file.txt"))          End Sub       </script>    </head> <body>    <asp:label id="Message" runat="server"/> </body> </html>