Anisha Hosting
£10.00 per month
>> Discover more ...
eCommerce Hosting
£14.00 per month
>> Discover more ...
SQL Server Hosting
£22.00 per month
>> Discover more ...
Anisha Tutorials
Your domain available:

Articles

Windows 2003 - IIS6 Hosting Provider

Dot Net Hosting


MySQL

php


free webmail

FREE WebMail as standard
with all hosting account

 


dotnet hosting visual studio.net

Hosting with a difference ...

 

Tutorial - ASP - Displaying File Content

In ASP.NET you can write the content of a file directly to the output stream
by using the writefile property of response object.

The following ASP.NET code displays the content of any specified file on the client browser:

<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data" %>

<html>
<body>
<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
Response.writefile("mydatafile.txt")
End Sub
</script>
</body>
</html>

 

All Rights Reserved Anisha.co.uk