Amnon Magen · Feb 25, 2020

CSP - using cspbind dynamically


I'm trying to create a form on a csp page, with input elements binding to data using the cspbind attribute.

All is working fine when i use string literal as in



But trying  to set the attribute to runtime expression  doesn't work for me, i.e:

cspbind= #(..EscapeHTML(query1.GetData(col)))#


 The same rt expression produce the desired string when used in other elements, i.e:

<p> #(..EscapeHTML(query1.GetData(col)))# </p>  

-> will produce 'UserName' on page.

Are there any known limitations for this attribute?   

I'm using version:

Cache for Windows (x86-64) 2015.2 (Build 664


0 162
Discussion (3)0
Log in or sign up to continue

So do i have any alternative way  to bind , when the information for binding will only be available at runtime?


I would look towards modern frameworks like React, Vue, etc., especially considering that CSP/ZEN/Mojo no longer develops.