Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2003
    Location
    Penang, Malaysia
    Posts
    212

    Unanswered: Load Page after process all code

    Hey Guys,

    If I remember correctly, there is a command to specifiy that the ASP page is process completely (e.g. page does not load until it reads the last code in the asp page) first before loading the entire page.

    Can anyone tell me the command???
    Patrick Chua
    LBMS ( Learn By My Self) NPQ ( No paper Qualification )

  2. #2
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    Response.Buffer

    Is that what you were looking for??

  3. #3
    Join Date
    Jul 2003
    Location
    Penang, Malaysia
    Posts
    212
    So doing that will be sufficient?
    man, my googling skills are degrading....
    can u direct me to any good sites to explain this things?
    Patrick Chua
    LBMS ( Learn By My Self) NPQ ( No paper Qualification )

  4. #4
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    Response.Buffer will stop the sending of any HTML out until the entire page has finished being build.

    So at the start of your page you have

    Response.Buffer = True

    then when you have finished your page you have

    Response.Flush

    You can also use Response.Clear to remove anything already in the buffer.

    Not sure of any decent sites to explain exactly how this all works....

  5. #5
    Join Date
    Jul 2003
    Location
    Penang, Malaysia
    Posts
    212
    Thanks. Will test it out.
    Patrick Chua
    LBMS ( Learn By My Self) NPQ ( No paper Qualification )

  6. #6
    Join Date
    Mar 2003
    Location
    Atlanta, GA
    Posts
    191
    Originally posted by Patrick Chua
    Thanks. Will test it out.
    If you type "response.buffer" into google.... or for that matter, any ASP command... you will get a whole host of sites that explain these things. One I like is devguru.com, another is asp101.com.

    And I liked the explanations on www.aspronline.com/learn/lessons/4/2.asp


    Tim
    Last edited by MrWizard; 01-11-04 at 22:51.
    Tim

Posting Permissions

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