please help me to solve this

ramesh perera asked on August 11, 2014 13:34

I want to call the function call "test()" which is in the CMSTransformation class and need to call from transformation when the user click on particular link. within the transformation i called it as following way. but it is not working please help me to solve this issue <a data-original-title="Add to cart" onClick="<%# test()%>" ........

Recent Answers


Brenden Kehren answered on August 11, 2014 14:04

Did you follow the how to Add custom methods to transformations documentation?

0 votesVote for this answer Mark as a Correct answer

ramesh perera answered on August 11, 2014 14:19

Thanks Mr. Brenden. yes my code is as following way

onClick=<%# test(Eval

0 votesVote for this answer Mark as a Correct answer

ramesh perera answered on August 11, 2014 15:00

part of my transformation is as following way

<a data-original-title="Add to cart" id="btnAddWishList_<%# Eval("SkuId") %>" onclick="<%# test(Eval

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 11, 2014 17:47

I have no doubt your code is right, my question is where did you implement the test() method? Did you follow the instructions in my first question to implement that method? If not, then using test() anywhere in your code, will error out because the method doesn't exist.

0 votesVote for this answer Mark as a Correct answer

ramesh perera answered on August 12, 2014 10:15

I have mplement that code within the cmsTransformation class

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 12, 2014 13:25

Does it work as you'd expect now?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.