Results 1 to 3 of 3

Thread: HTML and ASP or ASP only? Pros and cons?

  1. #1

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    Hi,
    What makes more sense? Creating a HTML document that calls ASP routines or using ASP only to create all of the HTML pages?
    Are there any pros or cons to either?
    Thanks,
    Al.
    A computer is a tool, not a toy.

  2. #2
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    Preference only, I try to condense as much as possible into ASP, I think I have read that it is more effiecient to have a single block of ASP as opposed to fragmented blocks interspered with HTML.

    Lenin

  3. #3
    Guest
    I may not be understanding the question but either a page is static HTML or it's an ASP page, it can't be both(unless you're loading an image which is a cool trick).

    Meaning, an html page can request an asp page that in turn sends back dynamically generated html content. If a page is not going to change very often it's probably more efficient to build it as a static html page(no asp). If content is going to change often then build the page as an ASP page. It really depends on the content, there's no hard fast rule.

    As for keeping blocks of asp together, the reason one might do this is to eliminate possible trips back to the browser which ends up being inefficient. To eliminate any unneccessary trips to the browser turn on buffering at the start of the page: Response.Buffer = True. This will buffer the output until the page is done processing or until the page hits a Response.Flush.

Posting Permissions

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



Click Here to Expand Forum to Full Width