webform1.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace test6_5
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
System.IO.StreamReader reader = new System.IO.StreamReader(System.IO.File.Open(Server.MapPath("WebForm1.aspx"),System.IO.FileMode.Open));
string tmp;
while((tmp = reader.ReadLine()) != null)
{
Response.Write(Server.HtmlEncode(tmp) + "<br>");
}
reader.Close();
}
}
}