This is the aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default7.aspx.cs" Inherits="Default7" %> Untitled Page
the aspx.cs code using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.IO; using System.Text; using System.Diagnostics; public partial class Default7 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string FILE_NAME = "C:\\test.txt"; System.IO.StreamReader objReader = new System.IO.StreamReader(FILE_NAME); TextBox1.Text = objReader.ReadLine(); objReader.Close(); } }