ASPX templates
Version 7.x > ASPX templates > ASCX Transformation View modes: 
User avatar
Member
Member
kgunasekar-microstrategy - 4/23/2013 9:16:53 AM
   
ASCX Transformation
Hi

I am trying to add a ASCX transformation that splits a block of text received from the document type into two sections.

how can i access the value from the document type, and write code to split into two.

can i have script block inside the transformation? if yes, how can i access the variables entered in the Document Type inside that??

Thank you

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/23/2013 6:29:28 PM
   
RE:ASCX Transformation
Hi,

You can create a custom transformation function that will use the API to get the node data and then you can do with then what you need.

Best regards,
Juraj Ondrus

User avatar
Member
Member
kgunasekar-microstrategy - 4/24/2013 9:58:17 AM
   
RE:ASCX Transformation
Got it. Well. i wrote a function within the transformation to do the same.

Thank you

User avatar
Member
Member
annaharris170-gmail - 5/3/2013 8:07:54 AM
   
RE:ASCX Transformation
How many controls are you using in your ASCX page ?