StreamWriter.Write or WriteLine causes Session_End
From: xuxu (renzoes_at_excite.com)
Date: 06/08/04
- Next message: Lau Lei Cheong: "Re: Netscape positioning problems"
- Previous message: The Alchemist: "Re: Web Custom Control - Datagrid Event Handling Problem"
- Next in thread: John Saunders: "Re: StreamWriter.Write or WriteLine causes Session_End"
- Reply: John Saunders: "Re: StreamWriter.Write or WriteLine causes Session_End"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Jun 2004 19:01:42 -0700
If you use StreamWrite Write or WriteLine it causes Session to End!
e.g.
FileStream fs = File.Open(fileName,FileMode.Append,FileAccess.Write);
StreamWriter sw = new StreamWriter(fs);
sw.Write("test");
sw.Close();
fs.Close();
Now all session information is lost!!
Is there a work around for this ?
- Next message: Lau Lei Cheong: "Re: Netscape positioning problems"
- Previous message: The Alchemist: "Re: Web Custom Control - Datagrid Event Handling Problem"
- Next in thread: John Saunders: "Re: StreamWriter.Write or WriteLine causes Session_End"
- Reply: John Saunders: "Re: StreamWriter.Write or WriteLine causes Session_End"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|