Writing a file to output (VB.net) : Write File « Response « ASP.Net






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>
           
       








Related examples in the same category

1.Read data from text file (C#)
2.Read file and display its content on the page (VB.net)
3.Write file (C#)