Page 1 of 1

response.write

Posted: Tue Mar 24, 2009 9:21 am
by erkerr67
So I'm re-skinning my pages and in one of the scriplets, I have a couple of response.write files to externally include .inc files (like a navigation, or footer, etc) but it doesn't seem to be reading these...it outputs it just as basic text on the page..

I understand that I could just as easily go ahead and make a "nav" scriplet or edit the "footer" scriplet to my liking...but does anyone know why it doesnt read the response.write code? it worked fine before I integrated ablecommerce into the site (just like an include file with php).

something that i'm curious about :?

Re: response.write

Posted: Tue Mar 24, 2009 9:50 am
by mazhar
Resposne.Write statements only work in ConLib controls or aspx pages you can not put them in scriptlests. In scriptlets only NVelocity code is supported.

Re: response.write

Posted: Tue Mar 24, 2009 9:51 am
by nickc
There's no ASP/ASP.NET server-side processing of scriptlets (they're .htm files).
You can include server controls or logic by encapsulating in an .ascx and adding nVelocity reference tag in the scriptlet.
nVelocity also has a small set of directives that can be used for very basic flow control.
The "Show Product 1" scriptlet is a good example of what's available.