Response Object/Basic Question

Results 1 to 3 of 3

Thread: Response Object/Basic Question

  1. #1
    Suri Guest

    Default Response Object/Basic Question

    Here is a very basic ASP question. I am new to ASP. Whats the use of Response object in ASP. Why cant we use simple HTML in the ASP page in case of static content and &#060;%= %&#062; tags(ofcourse after a bunch of &#060;% %&#062;tags) in case of dynamic content.<BR><BR>Thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Response Object/Basic Question

    &#060;%= %&#062; <BR>Is using the response object...<BR>&#060;%="text"%&#062; is equivalent to &#060;%response.write "text"%&#062;<BR><BR><BR>

  3. #3
    SPG Guest

    Default The Answer.

    ASP is a scripting language which is compiled into a useable language on the fly. Every unnecessary "&#060;%" or "%&#062;" slows the compiler down.<BR><BR>Traditionally, the compiler likes to just go over the code and have it all written out. (This may not matter with IIS 5, but I think it still does.) Every time it finds a "&#060;%" or "%&#062;", however, it has to change its mode of thinking from either "Compiling" or "Writing" to the other mode. This is called a Context Swap and, although not the most evil thing in the known universe, should be avoided because it *can* be avoided -- really quite easily.<BR><BR>Hope that makes sense,<BR>SPG

Posting Permissions

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