Mega Code Archive

 
Categories / ASP.Net / Response
 

Write file (C#)

<%@ Page Language="c#" %> <html>   <body>     <H2>Response.WriteFile()</H2>     <%;     string FileName;     //make sure the text file is in the correct place.     FileName = "file.txt";     Response.WriteFile(FileName);     %>   </body> </html>