I have a Kentico transformation with a text box and a button that fires a custom macro method that requires I pass the value in the text box. How can I access it using k#?
<input type="text" name="foo"/>
<asp:LinkButton runat="server" OnClick="<%# CustomMacroMethod(~foo.value~) %>" >Button</asp:LinkButton>
Is there a way to access this value?
Best way to access this properly is to:
This may seem like it's overkill but it allows you to use that same code throughout the site and the API.