response.write

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
erkerr67
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Mon Feb 02, 2009 5:01 pm

response.write

Post by erkerr67 » Tue Mar 24, 2009 9:21 am

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 :?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: response.write

Post by mazhar » Tue Mar 24, 2009 9:50 am

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.

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: response.write

Post by nickc » Tue Mar 24, 2009 9:51 am

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.

Post Reply