[thelist] [ASP] templating system woe's

Anthony Baratta Anthony at Baratta.com
Thu Aug 21 10:46:56 CDT 2003


Here's a bit of testing info:

If you wrap all your HTML in response.write you can use the Server.Execute 
function.

Caveat One: You can not embed <%%> in the text being executed.
Caveat Two: You can not embed raw HTML in the text being executed.

I hope this helps, or at least does not hurt.

e.g. This works:

<%
varTest="Response.Write ""This is a succesful test.""" & vbCRLF &_
         "varBlah = 5" & vbCRLF &_
         "Response.Write ""<h5>test</h5>""" & vbCRLF &_
         "Response.Write varBlah"
execute varTest
%>

e.g . This will not work:

<%
varTest="<%Response.Write ""This is a succesful test.""" & vbCRLF &_
         "varBlah = 5" & vbCRLF &_
         "Response.Write ""<h5>test</h5>""" & vbCRLF &_
         "Response.Write varBlah%>"
execute varTest
%>

e.g . This will not work either:

<%
varTest="Response.Write ""This is a succesful test.""" & vbCRLF &_
         "varBlah = 5" & vbCRLF &_
         "<h5>test</h5>" & vbCRLF &_
         "Response.Write varBlah"
execute varTest
%>
-- 
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."



More information about the thelist mailing list