G
Guest
private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
String FileName;
FileInfo MyFileInfo;
Long StartPos = 0, FileSize;
FileName = "J:\\Summary.txt";
MyFileInfo = new FileInfo(FileName);
FileSize = MyFileInfo.Length;
Response.Output.Write("Please Login: <br>");
Response.WriteFile(FileName, StartPos, FileSize);
}
}
}
put this in the page load event, then use view source from the brower. the
please login and content of the summary file are printed outside of the html
tags of the page? it also prints the "please login:" and content of the file
3 times????why?
{
if(!IsPostBack)
{
String FileName;
FileInfo MyFileInfo;
Long StartPos = 0, FileSize;
FileName = "J:\\Summary.txt";
MyFileInfo = new FileInfo(FileName);
FileSize = MyFileInfo.Length;
Response.Output.Write("Please Login: <br>");
Response.WriteFile(FileName, StartPos, FileSize);
}
}
}
put this in the page load event, then use view source from the brower. the
please login and content of the summary file are printed outside of the html
tags of the page? it also prints the "please login:" and content of the file
3 times????why?