Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    Texas
    Posts
    287
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .NET equivalent of response.buffer

    Does anyone know of the ASP.NET equivalent of
    response.buffer
    and
    response.flush?

    I have a huge page - 2300+ lines of code-behind so far with
    probably at least 50 different sql statements - would be nice
    if I could send sections of the page via response.flush on to the browser as they finish processing.

    Splitting into multiple,smaller pages is NOT an option.

    Any clues welcomed.

    thanks,

    fv

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    I use Response.Flush() with .NET
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    Texas
    Posts
    287
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Would that go in the .aspx page
    or in the /aspx.vb code-behind page?

    thanks,

    fv

  • #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    aspx.vb were you want it to happen

    I normally would do

    Response.Write("The var: " & myVar)
    Response.Flush()
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #5
    Regular Coder
    Join Date
    Aug 2002
    Location
    Texas
    Posts
    287
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Everything is done (or other procs/functions) from the Page_load event. I added response.buffer=true near the first of the page load proc and added numberous response.flush es. Does not seem to make any difference. Does asp.net do everything in the page_load sub before it attempts to render the page?

    thanks,

    fv


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •