private void Page_Load(objec t sender, System.EventArg s e)
{
if(!IsPostBack)
{
String FileName;
FileInfo MyFileInfo;
Long StartPos = 0, FileSize;
FileName = "J:\\Summary.tx t";
MyFileInfo = new FileInfo(FileNa me);
FileSize = MyFileInfo.Leng th;
Response.Output .Write("Please Login: <br>");
Response.WriteF ile(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?