Response.Write Problem

From: matthew (ma2t_at_sinaman.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 12:59:00 +0800

Hi all,

I am now writing a aspx that get a session variable (string) and then write
it out using Response.Write.

The string length is: 494710.

 But Response.Write only write the string partially!

I tried using following code, but it doesn't work, the page is keep loading.

    if(stringcontent.Length > 500)
    {
     Response.Write(stringcontent.Substring(0,500));
     stringcontent = stringcontent.Substring(500);
     while(stringcontent.Length > 500)
     {
      Response.Write(stringcontent.Substring(0,500));
      pagecontent = stringcontent.Substring(500);
     }
    }
    Response.Write(stringcontent);

How I can solve it?? Thx a lot.

Matthew



Relevant Pages

  • Re: Writing idiomatically for the cello and other string instruments
    ... writing for string instrument, specifically the cello. ... Also, get with a cello player and talk, ... Most of us sadly dont have a string player easily available- ...
    (rec.music.theory)
  • Re: Rewrite last line in text file
    ... Now parse the buffer backwards, ... TFileStream to that point ... start writing your replacement string. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Display contents of text file in the Browser
    ... It sounds like your app is attempting to read from the file at the same time ... that it is writing to it, ... process and attempting to read the file and display it at the same time. ... memory, and return that string to the client, while launching a separate ...
    (microsoft.public.dotnet.framework.aspnet)
  • How good is PERL at searching ASCII files?
    ... some text manipulation that needs doing and I've heard many times that ... or should I just spend 3 or 4 hours writing ... segregate the three param calls from the two param calls. ... The key elements being the string CONVERT, ...
    (perl.beginners)
  • How good is PERL at searching ASCII files?
    ... some text manipulation that needs doing and I've heard many times that ... or should I just spend 3 or 4 hours writing ... segregate the three param calls from the two param calls. ... The key elements being the string CONVERT, ...
    (comp.lang.perl.misc)