RegisterClientScriptBlock: How to build a JavaScript block from variables?
Hello everyone,
I'm making a macro that creates a gallery and I want to build a JavaScript block based on macro paramters for different options. In XSLT I would do it like this:
RegisterClientScriptBlock: How to build a JavaScript block from variables?
Hello everyone,
I'm making a macro that creates a gallery and I want to build a JavaScript block based on macro paramters for different options. In XSLT I would do it like this:
How would I go about implementing this into razor?
Thanks -Brett
Found a way to do it but its messy having to double all the { and } to escape them. For those interested:
If anyone knows a better way, please post!
Thanks.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.