Redirect response output with VBScript in ASP classic -


in plain .asp file, content outside of <% %> tags sent directly output buffer. additionally, expression in <%= %> tags evaluated , sent output buffer.

i want redirect that, in context establish, result of 2 constructs instead sent buffer control. if possible, i'd able dynamically, can redirect output different buffers @ runtime.

the problem open-ended, largely because i'll planning i'm building around solution. use way exists capture output. performance , ease of use not major considerations.

this sequel this question, in try 1 possible solution turns out not work.

in effect, trying rewrite asp.dll isapi filter. if wanted this, try write wrapper dll around asp.dll overrides writeclient function. not straightforward , begs question of trying accomplish.

a far simpler solution avoid using <% %> altogether , instead assemble entire page (or of it) in code page nothing more than:

<html> <%=outputhtml()%> </html> 

in way, can have total control on gets outputted , when.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -