On Mon, 10 Jan 2005 11:42:18 -0800 (PST), Scott Dexter
<[EMAIL PROTECTED]> wrote:
>  Convoluted Context Switching, Batman!
>  > 
>  > Here is the code
>  > Do Until RSPayGradeSteps.EOF
>  > %><% Pay = RSPayGradeSteps("PayStep") & " $ " & RSPayGradeSteps
>  > ("PaySalary") %> <option Value="<% response.write Pay %>"><% 
>  > response.write Pay %></option>
>  > <% RSPayGradeSteps.MoveNext
>  > Loop
>  
>  This is an aside to your issue, but to ease readibility and the
>  webserver's heart rate, you might reconsider how the above code is
>  structured. Each pair of <% %> toggles the webserver in and out of
>  'ASP code reading' mode, which is a performance hit.
Actually that is based on OLD info. It is an urban myth these days
like alligators in the NY sewers.

the context switches don't happen. A page gets converted ONCE to many
response.writes the first time IIS sees the page. But older
IIS/ASP.DLLs had teh flaw you are talking about. Trust me hundreds of
hours of research on that one.

If he wants to make code faster he should use GETSTRING ala
http://www.learnasp.com/advice/whygetrows.asp
and if he wants to make it more reusable with methods similar to:
http://www.learnasp.com/learn/subdblist.asp


http://www.learnasp.com/learn/rsfast.asp
actually kills 2 birds with one stone 
specifically  http://www.learnasp.com/learn/rsfast-lists.asp


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to