Hi Steve,
This feels like a hack but it does accomplish what you want.
It uses WebClient to fetch the file as a string. (This is ASP.NET 2.0 code)
Perhaps this will spark someone to come up with a more elegant solution?
Ken
Microsoft MVP [ASP.NET]
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub Page_Load _
(ByVal sender As Object, _
ByVal e As System.EventArgs)
Dim wc As New System.Net.WebClient
Dim sb As New StringBuilder
sb.Append(wc.DownloadString("
http://www.kencox.ca/textfile.txt"))
Literal1.Text = sb.ToString
End Sub
</script>
<html xmlns="
http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Webclient Text</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:literal id="Literal1" text="" runat="server"></asp:literal>
</div>
</form>
</body>
</html>