dotnet webhosintg
  
asp.net hosting DotNet Hosting  eCommerce Hosting  SQL Server Hosting  ADO DotNet  ASP DotNet  DotNet Tutorials 
  
         
 

Your domain available ?
www.

BUY NOW
ASPNET 4
SQL SERVER HOSTING
SQL SERVER 2012 HOSTINGNew
DOTNETNUKE HOSTING
GET LISTED IN GOOGLE
30 DAY MONEY BACK
OUR PARTNERS
ASP NET TUTORIALS
WEB DESIGN TEMPLATES
TERMS
PRESS ROOM
CONTACT US




 

 

Display File Content - ASP DotNet

Tutorial - Display File Content with ASP DotNet

In ASP.NET we 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>

 

 

 

Stacks of web space and bandwidth with all packages

ASP Hosting £6/Month


.net hosting

.NET Hosting £10/Month
400MB


Terms   Privacy

Copyright ©2002-2011 DotNet We Hosting UK, All rights reserved